﻿/*
Theme Name: 10XPixel
Theme URI: https://10XPixel.com/
Author: 10XPixel
Description: A premium WordPress theme for digital agencies, featuring AI solutions and web development showcases.
Version: 1.1 (Optimized SMACSS)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 10xpixel
*/

/* ==========================================================================
   10XPixel - Custom CSS Architecture (SMACSS + BEM)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES (Theme)
   -------------------------------------------------------------------------- */
:root {
    /* --- Brand Design System --- */
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-light: #e0e7ff;
    --color-secondary: #ec4899;
    --color-accent: #8b5cf6;
    --color-dark: #111827;
    --color-white: #ffffff;

    /* --- Brand Light Accents (for icons/badges) --- */
    --color-pink-light: #fdf2f8;
    --color-pink-dark: #db2777;
    --color-blue-light: #eff6ff;
    --color-blue-dark: #2563eb;
    --color-purple-light: #f3e8ff;
    --color-purple-dark: #9333ea;
    --color-orange-light: #fff7ed;
    --color-orange-dark: #ea580c;
    --color-green-light: #ecfdf5;
    --color-green-dark: #059669;
    --color-violet-light: #f5f3ff;
    --color-violet-dark: #7c3aed;

    /* --- Default Light Theme Variables --- */
    --theme-bg: #ffffff;
    --theme-bg-alt: #f8fafc;
    --theme-bg-card: #ffffff;
    --theme-text-main: #0f172a;
    --theme-text-body: #475569;
    --theme-text-light: #94a3b8;
    --theme-border: #e2e8f0;
    --theme-header-bg: rgba(255, 255, 255, 0.9);
    --theme-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --theme-nav-text: #0f172a;
    --theme-nav-bg: #ffffff;

    /* --- Gradients --- */
    --grad-primary: linear-gradient(135deg, #4f46e5, #9333ea);
    --grad-rainbow: linear-gradient(135deg, #4f46e5, #9333ea, #ec4899);
    --grad-heading: linear-gradient(135deg, #4f46e5, #7c3aed, #db2777);
    --grad-nav-mobile: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);

    /* --- Legacy Compatibility (mapping to theme variables) --- */
    --color-text-main: var(--theme-text-main);
    --color-text-body: var(--theme-text-body);
    --color-text-light: var(--theme-text-light);
    --color-bg-body: var(--theme-bg);
    --color-bg-light: var(--theme-bg-alt);
    --color-border: var(--theme-border);

    /* --- Typography & Spacing --- */
    --font-main: 'Poppins', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-section: 5rem;

    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition-base: all 0.3s ease;
    --transition-nav: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --anim-duration-slow: 3s;
}

[data-theme='dark'] {
    --theme-bg: #0b1121;
    --theme-bg-alt: #0f172a;
    --theme-bg-card: #151c2f;
    --theme-text-main: #f8fafc;
    --theme-text-body: #94a3b8;
    --theme-text-light: #64748b;
    --theme-border: #1e293b;
    --theme-header-bg: rgba(11, 17, 33, 0.9);
    --theme-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --theme-nav-text: #f8fafc;
    --theme-nav-bg: #151c2f;

    /* Dark Mode Gradients */
    --grad-heading: linear-gradient(135deg, #a78bfa, #818cf8, #2dd4bf);
    --grad-nav-mobile: linear-gradient(135deg, #0b1121 0%, #0f172a 100%);
}

/* --------------------------------------------------------------------------
   2. BASE (Reset & Typography)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-wrap: balance;
}

body {
    font-family: var(--font-main);
    background-color: var(--theme-bg);
    color: var(--theme-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h3,
h4,
h5,
h6 {
    color: var(--theme-text-main);
}

h2 {
    color: var(--theme-text-main);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

.h2-gradient,
[data-theme='dark'] h2 {
    background: var(--grad-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.heading-gradient {
    background: var(--grad-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Global Icon Styling --- */
i[data-lucide],
svg.lucide {
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    display: inline-block;
    stroke-width: 2.25px;
    /* Slight bump for prominence */
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

/* --- Accessibility Utilities --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
}

.section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    position: relative;
}

.section--bg-light {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid--2-cols {
    grid-template-columns: repeat(1, 1fr);
}

.grid--3-cols {
    grid-template-columns: repeat(1, 1fr);
}

.grid--4-cols {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid--2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: var(--font-size-5xl);
    }

    h2 {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 1024px) {
    .grid--3-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4-cols {
        grid-template-columns: repeat(4, 1fr);
    }

    h1 {
        font-size: var(--font-size-6xl);
    }
}

/* --------------------------------------------------------------------------
   4. MODULES (Components)
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-xl);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: var(--font-size-base);
}

/* Better Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.card:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    /* Keep local translucent shadow */
}

/* Text Button (for Read More links) */
.btn--text {
    background: none;
    border: none;
    color: var(--color-primary);
    padding: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn--text:hover,
.btn--text:focus-visible {
    color: var(--color-primary-dark);
    transform: translateX(4px);
    text-decoration: underline;
}

.btn--text:hover i {
    transform: translateX(4px);
}

.btn--text i {
    transition: transform 0.3s ease;
}

/* Gradient Border Animated Button (Header) */
.btn--gradient-border {
    position: relative;
    background: linear-gradient(var(--theme-bg-card), var(--theme-bg-card)) padding-box,
        var(--grad-rainbow) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    color: var(--theme-text-main);
    background-size: 200% auto;
    animation: gradientBorderAnimation var(--anim-duration-slow) linear infinite;
    font-weight: 700;
    transition: var(--transition-base);
}

@keyframes gradientBorderAnimation {
    to {
        background-position: 200% center;
    }
}

.btn--gradient-border:hover,
.btn--gradient-border:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    color: var(--color-primary-dark);
    /* focus enhancement */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 50;
    background-color: transparent;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    color: var(--theme-text-main);
}

/* On homepage hero, we want white text regardless of theme for the high-contrast video */
.header:not(.header--scrolled) {
    color: var(--color-white);
}

/* Exceptions for light-background pages and scrolled states */
.header--light-bg,
.header--scrolled {
    color: var(--theme-text-main) !important;
}

.header--scrolled {
    background-color: var(--theme-header-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    color: var(--theme-text-main);
    /* Adaptive text color */
}

.header--light-bg {
    background-color: var(--theme-header-bg);
    box-shadow: var(--shadow-sm);
    color: var(--theme-text-main) !important;
}

[data-theme='dark'] .header:not(.header--scrolled) {
    color: var(--color-white);
}

/* Ensure actions and logo follow theme */
.logo,
.header__actions,
.theme-toggle {
    color: inherit;
}

[data-theme='dark'] .header--scrolled {
    background-color: var(--theme-header-bg);
    color: var(--theme-text-main);
}

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

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

@media (max-width: 960px) {
    .header__right {
        gap: 0.75rem;
        margin-left: auto;
    }

    .header__actions {
        gap: 0.75rem;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Hide desktop button on mobile header */
    .header__btn-desktop {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header__right {
        gap: 0.5rem;
    }
}

/* Ensure header is on top of overlay when menu is open */
body.menu-open .header {
    z-index: 2000;
}

[data-theme='dark'] .nav__link {
    color: var(--theme-text-main);
}

/* Prevent interaction with the rest of the header if needed, but menu must be clickable */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--font-size-2xl);
    color: inherit;
    /* Inherit from header (white then dark) */
    text-decoration: none;
}

.logo__icon {
    width: 2.5rem;
    /* w-10 */
    min-width: 2.5rem;
    height: 2.5rem;
    /* h-10 */
    min-height: 2.5rem;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    /* Ensure visibility */
}

/* Global visibility classes */
.header__btn-desktop {
    display: none;
}

@media (min-width: 960px) {
    .header__btn-desktop {
        display: inline-flex !important;
    }
}

/* Nav - Responsive Single Menu */
.nav {
    /* Mobile: Slide-out menu from right */
    position: fixed;
    top: 0;
    right: 0;
    width: var(--nav-mobile-width);
    max-width: 85vw;
    height: 100vh;
    background: var(--grad-nav-mobile);
    box-shadow: var(--shadow-nav);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: var(--transition-nav);
    z-index: 1100;
    /* Higher than toggle to be safe or slightly below */
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    /* Disable when closed */
}

.nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    /* Enable when open */
}

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

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__list li {
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-nav);
}

/* Stagger transition FORWARD (when opening) - top items first */
.nav.is-open .nav__list li:nth-child(1) {
    transition-delay: 0.3s;
    transform: translateX(0);
    opacity: 1;
}

.nav.is-open .nav__list li:nth-child(2) {
    transition-delay: 0.35s;
    transform: translateX(0);
    opacity: 1;
}

.nav.is-open .nav__list li:nth-child(3) {
    transition-delay: 0.4s;
    transform: translateX(0);
    opacity: 1;
}

.nav.is-open .nav__list li:nth-child(4) {
    transition-delay: 0.45s;
    transform: translateX(0);
    opacity: 1;
}

.nav.is-open .nav__list li:nth-child(5) {
    transition-delay: 0.5s;
    transform: translateX(0);
    opacity: 1;
}

.nav.is-open .nav__list li:nth-child(6) {
    transition-delay: 0.55s;
    transform: translateX(0);
    opacity: 1;
}

/* Stagger transition REVERSE (when closing) - bottom items first */
.nav:not(.is-open) .nav__list li:nth-child(1) {
    transition-delay: 0.3s;
}

.nav:not(.is-open) .nav__list li:nth-child(2) {
    transition-delay: 0.25s;
}

.nav:not(.is-open) .nav__list li:nth-child(3) {
    transition-delay: 0.2s;
}

.nav:not(.is-open) .nav__list li:nth-child(4) {
    transition-delay: 0.15s;
}

.nav:not(.is-open) .nav__list li:nth-child(5) {
    transition-delay: 0.1s;
}

.nav:not(.is-open) .nav__list li:nth-child(6) {
    transition-delay: 0.05s;
}

.nav__link {
    display: block;
    padding: 1rem 1.25rem;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--theme-nav-text) !important;
    display: block;
    /* Force visibility over inherited colors */
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-primary);
    transform: scaleY(0);
    transition: var(--transition-base);
}

.nav__link:hover {
    background-color: rgba(79, 70, 229, 0.08);
    /* Indigo light tint */
    color: var(--color-primary);
    transform: translateX(8px);
}

.nav__link:hover::before {
    transform: scaleY(1);
}

.nav__link--active {
    font-weight: 700;
    color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.1);
}

.nav__link--active::before {
    transform: scaleY(1);
}

.nav__mobile-cta {
    margin-top: 2rem;
    padding: 0 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.nav.is-open .nav__mobile-cta {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Navigation */
@media (min-width: 960px) {
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        transform: none;
        visibility: visible;
        overflow-y: visible;
        pointer-events: auto;
        /* Ensure clickable on desktop */
    }

    .nav__list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .nav__mobile-cta {
        display: none !important;
    }

    .nav__list li {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .nav__link {
        padding: 0;
        font-size: var(--font-size-base);
        color: var(--theme-text-main) !important;
        border-radius: 0;
    }

    /* Force white on hero section transparent header */
    .header:not(.header--scrolled) .nav__link {
        color: var(--color-white) !important;
    }

    /* Back to theme for scrolled or light-bg headers */
    .header--scrolled .nav__link,
    .header--light-bg .nav__link {
        color: var(--theme-text-main) !important;
    }

    .nav__link::before {
        display: none;
    }

    .nav__link:hover {
        background-color: transparent;
        transform: none;
    }

    /* Desktop Nav Link Colors - Ensure visibility */
    .header--scrolled .nav__link,
    .header--light-bg .nav__link {
        color: var(--theme-text-main) !important;
    }

    .header:not(.header--scrolled):not(.header--light-bg) .nav__link {
        color: var(--color-white) !important;
    }
}

/* Mobile Toggle Button - Gradient Border Circle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: var(--theme-nav-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    z-index: 2100;
    /* Must be higher than header and nav (2000) */
    transition: var(--transition-base);
    box-shadow: var(--theme-card-shadow);
}

/* Gradient border effect for toggle */
.mobile-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    padding: 2px;
    background: var(--grad-rainbow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    /* Slight visible border by default */
    transition: var(--transition-base);
}

.mobile-toggle:hover::before,
.mobile-toggle.is-active::before {
    opacity: 1;
    animation: rotateToggleBorder var(--anim-duration-slow) linear infinite;
}

@keyframes rotateToggleBorder {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--theme-nav-text) !important;
    border-radius: 2px;
    transition: var(--transition-nav);
}

/* X Transformation */
.mobile-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile menu overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 960px) {
    .nav-overlay {
        display: none;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-body);
    list-style: none;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb__link {
    color: var(--color-text-body);
    text-decoration: none;
    transition: var(--transition-base);
}

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

.breadcrumb__separator {
    width: 16px;
    height: 16px;
    color: var(--color-text-light);
}

.breadcrumb__current {
    color: var(--color-primary);
    font-weight: 500;
}

/* Hero Section (Main Layout) */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero--light-bg {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-bg-body);
}

/* Option 1: Vibrant Brand Gradient */
.hero--gradient-brand {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: var(--spacing-section);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    color: var(--color-white);
}

.hero--gradient-brand h1 {
    color: var(--color-white);
}

.hero--gradient-brand p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Option 2: Modern Mesh Gradient */
.hero--gradient-mesh {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: var(--spacing-section);
    background-color: #f3f4f6;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    color: var(--color-white);
}

/* Option 3: Deep Animated Gradient */
.hero--gradient-dark {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: var(--spacing-section);
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #1e1b4b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--color-white);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero--gradient-dark h1,
.hero--gradient-mesh h1 {
    color: var(--color-white);
}

/* Page Hero Recreated Styles */
.hero-new {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
    color: var(--color-white);
}

.hero-new__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-new__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-new__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay */
    z-index: 2;
}

.hero-new__container {
    position: relative;
    width: 100%;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-new__content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 20;
}

/* Custom Buttons for Hero */
.btn--hero-primary {
    background-color: #5D5CFF;
    /* Precise match from image */
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(93, 92, 255, 0.4);
    border: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn--hero-primary:hover {
    background-color: #4b4acc;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(93, 92, 255, 0.5);
}

.btn--hero-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn--hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Content Styling */
.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    /* Darker overlay */
    z-index: 1;
}

.hero__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero__content-wrapper {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 50;
}

.hero__badge-wrapper {
    margin-bottom: 2rem;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #e5e7eb;
    font-size: 0.9375rem;
    /* 15px */
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero__title {
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 600;
    /* Extra bold */
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__highlight--ai {
    color: #5D5CFF;
    /* Match primary button/AI color */
}

.hero__highlight--web {
    color: #D946EF;
    /* Match pink/purple */
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #d1d5db;
    /* gray-300 */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__subtitle {
    display: block;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    border: 1px solid var(--color-bg-light);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card__image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    margin: calc(var(--spacing-xl) * -1);
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image {
    transform: scale(1.1);
}

.card__tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(79, 70, 229, 0.85);
    /* Primary color with transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.card__footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card--horizontal {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .card--horizontal {
        grid-column: span 2;
        flex-direction: row;
        align-items: stretch;
    }

    .card--horizontal .card__image-wrapper {
        width: 50%;
        margin: calc(var(--spacing-xl) * -1);
        margin-right: var(--spacing-xl);
        border-bottom: none;
        border-right: 1px solid var(--color-border);
        height: auto;
    }

    .card--horizontal .card__content {
        width: 50%;
        padding: var(--spacing-sm) 0;
    }
}

/* Service Card Variants */
.card--service-brand {
    background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card--service-web {
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card--service-mobile {
    background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card--service-marketing {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card--service-seo {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card--service-ai {
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card__icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Simpler shadow like home */
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

/* Apple-style icon prominence */
.card__icon-wrapper i,
.card__icon-wrapper svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transform: translateZ(0);
}

.card__icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.card:hover .card__icon-wrapper::after {
    left: 150%;
}

.card:hover .card__icon-wrapper {
    transform: scale(1.1) rotate(6deg);
    /* Classical home page hover */
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--theme-bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-card-shadow);
    transition: var(--transition-base);
}

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

.rating {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
    background-color: #0b1121;
    color: #f8fafc;
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-xl);
}

.footer__grid {
    display: grid;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer__title {
    color: #ffffff;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__link {
    color: #94a3b8;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.footer__link:hover {
    color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--theme-border);
    color: inherit;
    /* Inherit from header */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    margin-left: 0;
    /* Reset margin as parent handles it now */
}

.theme-toggle i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: currentColor;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .header--scrolled .theme-toggle:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

[data-theme='dark'] .card--service-brand,
[data-theme='dark'] .card--service-web,
[data-theme='dark'] .card--service-mobile,
[data-theme='dark'] .card--service-marketing,
[data-theme='dark'] .card--service-seo,
[data-theme='dark'] .card--service-ai {
    background: var(--theme-bg-card);
    border-color: var(--theme-border);
}

[data-theme='dark'] .card--service-brand:hover {
    border-color: var(--color-secondary);
}

[data-theme='dark'] .card--service-web:hover {
    border-color: var(--color-primary);
}

[data-theme='dark'] .card--service-mobile:hover {
    border-color: var(--color-accent);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
    font-size: var(--font-size-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--theme-border);
    background-color: var(--theme-bg-alt);
    color: var(--theme-text-main);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    font-family: inherit;
    font-size: var(--font-size-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    background-color: var(--theme-bg);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Custom Select Arrow */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

[data-theme='dark'] .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme='dark'] .form-select option {
    background-color: var(--theme-bg-alt);
    color: var(--theme-text-main);
}

/* Animations included from original */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

/* Mobile Menu */
/* Old mobile menu styles removed - now using single responsive nav */

/* --- Shake Animation --- */
@keyframes lite-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-3px);
    }
}

.animate-shake {
    animation: lite-shake 0.4s ease-in-out;
}

/* Ensure buttons still have their vertical translate if needed, 
   but for shake we just use the class which will override transform for a split second */

/* --- Clients Section --- */
.clients-section {
    padding: var(--spacing-section) 0;
    background-color: var(--theme-bg-alt);
    border-top: 1px solid var(--theme-border);
    transition: background-color 0.3s ease;
}

[data-theme='dark'] .clients-section {
    background-color: var(--theme-bg);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Updated to 6 columns as requested */
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs);
    background: var(--theme-bg-card);
    border-radius: 4px;
    border: 1px solid var(--theme-border);
    transition: var(--transition-bounce);
    aspect-ratio: 16/9;
    height: auto;
    box-shadow: var(--theme-card-shadow);
}

.client-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    filter: grayscale(100%);
    z-index: 10;
}

.client-logo {
    max-width: 85%;
    max-height: 65%;
    transition: var(--transition-base);
}


.client-item:hover .client-logo {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
}

[data-theme='dark'] .client-item:hover .client-logo {
    filter: brightness(1) invert(0);
    opacity: 1;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: var(--color-white);
}

.is-hidden {
    display: none !important;
}

.is-visible {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(var(--spacing-xl));
    transition: var(--transition-base);
    z-index: 500;
    border: none;
    cursor: pointer;
    visibility: hidden;
    pointer-events: none;
}

.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: calc(var(--spacing-lg) + 4rem);
    right: var(--spacing-lg);
    background-color: #25d366;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 500;
    transition: var(--transition-base);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    width: 24px;
    height: 24px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.badge--primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(79, 70, 229, 0.1);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge--purple {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.badge--blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Filter Buttons */
.filter-btn {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9375rem;
}

.filter-btn:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.filter-btn--active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Category Specific Active States */
.filter-btn[data-filter="ai"].filter-btn--active {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.filter-btn[data-filter="web-dev"].filter-btn--active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-btn[data-filter="ui-ux"].filter-btn--active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Category Specific Hover States */
.filter-btn[data-filter="ai"]:hover:not(.filter-btn--active) {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.filter-btn[data-filter="web-dev"]:hover:not(.filter-btn--active) {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filter-btn[data-filter="ui-ux"]:hover:not(.filter-btn--active) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.pagination__btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-base);
}

.pagination__btn:hover:not(:disabled) {
    background-color: var(--color-bg-light);
}

.pagination__btn--active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination__btn:disabled {
    color: var(--color-text-light);
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    color: #ef4444;
    /* red-500 */
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: block;
}

/* Article Content */
.article-content {
    max-width: 65ch;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-body);
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-heading);
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    width: 100%;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-text-heading);
    margin: 2rem 0;
    font-size: 1.25rem;
}

/* Decoration Blobs (Home Services) */
.decoration-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.3;
}

.decoration-blob--primary {
    top: 5rem;
    left: 2rem;
    width: 20rem;
    height: 20rem;
    background: linear-gradient(to bottom right, #e0e7ff, #f3e8ff);
}

.decoration-blob--secondary {
    bottom: 5rem;
    right: 2rem;
    width: 24rem;
    height: 24rem;
    background: linear-gradient(to bottom right, #fce7f3, #ffedd5);
}

.decoration-code {
    position: absolute;
    top: 8rem;
    right: 4rem;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
    border-radius: 0.5rem;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: monospace;
    font-weight: bold;
}

.decoration-api {
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, #f472b6, #fb7185);
    border-radius: 0.5rem;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.75rem;
}

/* Floating Badge (Portfolio) */
.badge--floating {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Service Icon Gradients */
.icon-wrapper--gradient-brand {
    background: linear-gradient(to bottom right, #ec4899, #f43f5e);
}

.icon-wrapper--gradient-web {
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
}

.icon-wrapper--gradient-mobile {
    background: linear-gradient(to bottom right, #a855f7, #6366f1);
}

.icon-wrapper--gradient-marketing {
    background: linear-gradient(to bottom right, #f97316, #f59e0b);
}

.icon-wrapper--gradient-seo {
    background: linear-gradient(to bottom right, #10b981, #14b8a6);
}

.icon-wrapper--gradient-ai {
    background: linear-gradient(to bottom right, #8b5cf6, #a855f7);
}

/* Stat Cards */
.card {
    background-color: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-bounce), background-color 0.3s ease;
    box-shadow: var(--theme-card-shadow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary);
}

.card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__title {
    font-size: var(--font-size-xl);
    color: var(--theme-text-main);
    margin-bottom: var(--spacing-sm);
}

.stat-card__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-card__label {
    color: var(--color-text-body);
    font-weight: 500;
}

/* Testimonial Elements */
.rating__star {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.testimonial__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__user-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Team Images */
.team__image-wrapper {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.team__image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* Footer Badge */
.logo__badge-footer {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, #4f46e5, #9333ea);
}

/* --------------------------------------------------------------------------
   Page Hero Sections
   -------------------------------------------------------------------------- */
.page-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.page-hero--large {
    min-height: 500px;
}

.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.page-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.page-hero__content--wide {
    max-width: 800px;
    padding: 0 1rem;
}

.page-hero__title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.page-hero__title--large {
    font-size: 3rem;
    line-height: 1.2;
}

.page-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-wrap: balance;
}

.page-hero__badge {
    margin-bottom: 1rem;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   CTA Sections
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.cta-section--dark {
    background-color: #111827;
}

.cta-section__title {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section__title--large {
    font-size: 2rem;
}

.cta-section__text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section__button {
    background-color: white;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Contact Information
   -------------------------------------------------------------------------- */
.contact-info__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info__text {
    font-size: 1.125rem;
    color: var(--color-text-body);
    margin-bottom: 3rem;
}

.contact-info__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info__icon-wrapper {
    background: #e0e7ff;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-info__icon-wrapper--purple {
    background: #f3e8ff;
}

.contact-info__icon {
    color: var(--color-primary);
}

.contact-info__icon--purple {
    color: #9333ea;
}

.contact-info__heading {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-info__heading--large {
    margin-bottom: 1rem;
}

.contact-info__link {
    color: var(--color-text-body);
}

.contact-info__locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info__location-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info__location-address {
    font-size: 0.875rem;
    color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   Form Styles
   -------------------------------------------------------------------------- */
.form-grid {
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group--no-margin {
    margin-bottom: 0;
}

.form-required {
    color: #ef4444;
}

.form-button--full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Article & Blog Styles
   -------------------------------------------------------------------------- */
.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.article-title--large {
    font-size: 1.75rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.article-author__image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.article-author__name {
    font-weight: 700;
    color: var(--color-text-heading);
}

.article-author__meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Team Member Cards
   -------------------------------------------------------------------------- */
.team-card {
    align-items: center;
}

.team-card__image {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-card__role {
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card__role--primary {
    color: var(--color-primary);
}

.team-card__role--accent {
    color: var(--color-accent);
}

.team-card__role--rose {
    color: #e11d48;
}

.team-card__role--emerald {
    color: #059669;
}

.team-card__social {
    display: flex;
    gap: 1rem;
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */
.footer__logo-link {
    margin-bottom: 1.5rem;
}

.footer__logo-badge {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, #4f46e5, #9333ea);
}

.footer__logo-text {
    font-weight: 700;
    color: #ffffff;
}

.footer__description {
    color: #94a3b8;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__divider {
    border-top: 1px solid #374151;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   Portfolio/Project Details
   -------------------------------------------------------------------------- */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-section__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-section__text {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.project-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.project-content ul li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-body);
    font-size: 1.05rem;
    line-height: 1.5;
}

.project-content ul li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.project-section__text--large {
    font-size: 1.125rem;
}

.project-features {
    gap: 1.5rem;
}

.project-feature {
    margin: 0;
    padding: 2rem;
    border: 1px solid #c7d2fe;
}

.project-feature--primary {
    background: #e0e7ff;
}

.project-feature--purple {
    background: #f3e8ff;
    border-color: #e9d5ff;
}

.project-feature__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

.project-feature__icon--primary {
    color: var(--color-primary);
}

.project-feature__icon--purple {
    color: #9333ea;
}

.project-feature__title {
    margin-bottom: 0.5rem;
}

.project-feature__text {
    font-size: 0.875rem;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-images__main {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.project-images__grid {
    gap: 1.5rem;
}

.project-images__item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.project-sidebar {
    position: -webkit-sticky;
    /* Support for Safari */
    position: sticky;
    top: 100px;
    padding: 2.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.grid--2-cols-custom {
    display: grid !important;
    gap: 3rem;
    align-items: stretch !important;
    overflow: visible !important;
    /* Critical for sticky children */
}

@media (min-width: 960px) {
    .grid--2-cols-custom {
        grid-template-columns: 2fr 1fr;
    }
}

aside {
    display: flex;
    flex-direction: column;
    align-self: stretch !important;
    height: auto !important;
    overflow: visible !important;
}

.section {
    overflow: visible !important;
}

#main-content {
    overflow: visible !important;
}

.project-sidebar__title {
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
}

.project-sidebar__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-detail__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-light);
    margin-bottom: 0.25rem;
}

.project-detail__value {
    font-weight: 600;
    color: var(--theme-text-main);
    font-size: 0.95rem;
}

.project-detail__value a {
    color: var(--color-primary);
    transition: var(--transition-base);
    word-break: break-all;
}

.project-detail__value a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-body);
}

.project-tech-list {
    list-style: none;
    padding: 0;
}

.project-divider {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--theme-border);
}

.project-cta {
    text-align: center;
}

.project-cta__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.project-cta__text {
    font-size: 0.825rem;
    color: var(--theme-text-light);
    margin-bottom: 1rem;
}

.project-cta__button {
    width: 100%;
}

/* Consolidated above */

/* --------------------------------------------------------------------------
   7. SECTIONS - Impact & Stats
   -------------------------------------------------------------------------- */
.impact-section {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.impact-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.impact-header__title {
    color: var(--color-white) !important;
    margin-bottom: var(--spacing-md);
}

.impact-header__text {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition-bounce);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card__number {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-card__label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.stat-card--bordered {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Filter Buttons (Insights Page)
   -------------------------------------------------------------------------- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

/* --------------------------------------------------------------------------
   Articles Grid
   -------------------------------------------------------------------------- */
.articles-grid {
    gap: 2.5rem;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-xl {
    font-size: var(--font-size-xl);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.w-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Two Column Layout Variations
   -------------------------------------------------------------------------- */
/* Consolidated above */

/* --------------------------------------------------------------------------
   Stat Cards (for impact/stats sections)
   -------------------------------------------------------------------------- */
/* Redundant stat-card styles removed - unified above */

/* --------------------------------------------------------------------------
   8. MODULES - Service Icons & Labels
   -------------------------------------------------------------------------- */
.service-icon {
    margin-bottom: var(--spacing-md);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.service-icon i {
    width: 32px;
    height: 32px;
}

.service-icon--pink {
    background: var(--color-pink-light);
}

.service-icon--pink i {
    color: var(--color-pink-dark);
}

.service-icon--blue {
    background: var(--color-blue-light);
}

.service-icon--blue i {
    color: var(--color-blue-dark);
}

.service-icon--purple {
    background: var(--color-purple-light);
}

.service-icon--purple i {
    color: var(--color-purple-dark);
}

.service-icon--orange {
    background: var(--color-orange-light);
}

.service-icon--orange i {
    color: var(--color-orange-dark);
}

.service-icon--green {
    background: var(--color-green-light);
}

.service-icon--green i {
    color: var(--color-green-dark);
}

.service-icon--violet {
    background: var(--color-violet-light);
}

.service-icon--violet i {
    color: var(--color-violet-dark);
}

.service-link {
    margin-top: 2.5rem;
    /* Further increased space to the top */
    /* Increased space to the top */
    align-self: flex-start;
    border: none;
    padding-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-link--pink {
    color: #ec4899;
}

.service-link--blue {
    color: #2563eb;
}

.service-link--purple {
    color: #9333ea;
}

.service-link--orange {
    color: #ea580c;
}

.service-link--green {
    color: #059669;
}

.service-link--violet {
    color: #7c3aed;
}

/* --------------------------------------------------------------------------
   Utility Classes for Index1
   -------------------------------------------------------------------------- */
.section--overflow-hidden {
    overflow: hidden;
}

.section--relative-overflow {
    position: relative;
    overflow: hidden;
}

.container--relative-z10 {
    position: relative;
    z-index: 10;
}

.decoration--top-left {
    top: -5rem;
    left: -5rem;
}

.decoration--bottom-right {
    bottom: -5rem;
    right: -5rem;
}

.decoration--top-right-custom {
    top: 15%;
    right: 8%;
    opacity: 0.2;
}

.decoration--top-right {
    top: 10%;
    right: 5%;
}

.decoration--bottom-left {
    bottom: 10%;
    left: 5%;
}

.decoration--bottom-right-custom {
    bottom: 15%;
    right: 10%;
    top: auto;
    opacity: 0.2;
}

.decoration--top-left-alt {
    top: 20%;
    left: 10%;
}

.decoration--bottom-right-alt {
    bottom: 20%;
    right: 10%;
}

.decoration--bottom-left-custom {
    bottom: 25%;
    left: 8%;
    top: auto;
    opacity: 0.15;
}

.decoration--top-right-alt {
    top: -2rem;
    right: -2rem;
}

.decoration--bottom-left-alt {
    bottom: -2rem;
    left: -2rem;
}

.decoration--top-left-opacity {
    top: 20%;
    left: 5%;
    opacity: 0.15;
}

.decoration--blog-bottom-left {
    bottom: 10%;
    left: 5%;
    top: auto;
    right: auto;
}

.decoration--blog-top-right {
    top: 10%;
    right: 5%;
}

/* Team Member Styles */
.team-member__name {
    font-size: 1.125rem;
    font-weight: 700;
}

.team-member__role {
    color: var(--color-primary);
    font-size: 0.875rem;
}

/* Testimonial Styles */
.testimonial__quote {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial__user-name {
    font-weight: 700;
}

.testimonial__user-title {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Section Header Paragraph */
.section-header__text {
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    margin-bottom: var(--spacing-2xl);
}

/* Blog Badge Variants */
.badge--ai {
    background-color: #8b5cf6;
    /* Purple variant for AI */
    color: var(--color-white);
}

.badge--design {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.badge--development {
    background-color: #3b82f6;
    /* Keep blue variant */
    color: var(--color-white);
}

.badge--marketing {
    background-color: #f97316;
    /* Keep orange variant */
    color: var(--color-white);
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.blog-meta__icon {
    width: 14px;
    display: inline-block;
    vertical-align: middle;
}

.blog-title--large {
    font-size: 1.25rem;
}

.blog-link {
    padding-left: 0;
    color: var(--color-primary);
}

/* Contact Section */
.contact-heading {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.contact-subheading {
    font-size: var(--font-size-lg);
    color: var(--color-text-body);
    margin-bottom: var(--spacing-2xl);
}

.contact-address {
    font-style: normal;
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-icon--email {
    background: var(--color-primary-light);
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.contact-icon--email i {
    color: var(--color-primary);
}

.contact-icon--location {
    background: #f3e8ff;
    /* Purple tint */
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.contact-icon--location i {
    color: var(--color-accent);
}

.contact-item__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-item__link {
    color: var(--color-text-body);
}

.contact-locations-title {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.contact-locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-location__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-location__address {
    font-size: 0.875rem;
    color: var(--color-text-body);
}

/* Form Grid Variants */
.form-grid--gap {
    gap: 1rem;
    margin-bottom: 1rem;
}

/* MOBILE PERFORMANCE OVERRIDES */
@media (max-width: 768px) {

    .animate-float,
    .animate-shake {
        animation: none !important;
        transform: none !important;
    }

    .decoration-blob {
        display: none !important;
    }

    .header--scrolled {
        backdrop-filter: none !important;
        background-color: var(--theme-header-bg) !important;
    }

    .nav__link,
    .footer__link,
    .social-link,
    .btn {
        min-height: 48px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Consolidated with main responsive rules */

/* HERO TITLES RE-SYNC */
.hero__badge-wrapper {
    margin-bottom: 2rem;
}

.hero__badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #e5e7eb;
    font-size: 0.9375rem;
    font-weight: 500;
}

.hero__title {
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 4rem;
        line-height: 1.1;
    }
}

/* FALLBACK MENU STYLING */
.nav__list li a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.header:not(.header--scrolled) .nav__list li a {
    color: #fff;
}

.header--scrolled .nav__list li a {
    color: var(--theme-text-main);
}

/* TECH GRID & ITEMS */
/* --------------------------------------------------------------------------
   Masonry Grid
   -------------------------------------------------------------------------- */
.grid--masonry {
    column-count: 3;
    column-gap: 2.5rem;
    display: block;
}

@media (max-width: 1024px) {
    .grid--masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .grid--masonry {
        column-count: 1;
    }
}

.grid--masonry .card {
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2.5rem;
    height: auto;
    /* Allow content to define height for masonry effect */
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    transition: var(--transition-bounce);
    width: auto;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.tech-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.tech-item i {
    font-size: 1.1rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item svg {
    width: 1.1rem;
    height: 1.1rem;
}

.tech-item__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-text-main);
}

.card__tech-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin: 1.25rem 0 0.85rem;
    /* Reduced top margin */
    font-weight: 800;
    /* Bold and prominent */
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.tech-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.tech-list__item:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateX(5px);
}

.tech-list__item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}