/* ============================================
   WEST CLOUDE - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0057FF;
    --primary-dark: #003ECB;
    --primary-light: #FFF4D9;
    --secondary: #00D4AA;
    --secondary-dark: #00B894;
    --accent: #FF6B35;
    --dark: #0A1628;
    --dark-medium: #1A2744;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F2EBD9;
    --white: #FAF6E9;
    --gradient-primary: linear-gradient(135deg, #0057FF 0%, #00D4AA 100%);
    --gradient-dark: linear-gradient(135deg, #0A1628 0%, #1A2744 100%);
    --gradient-hero: linear-gradient(160deg, #1A2744 0%, #0057FF 50%, #00D4AA 100%);
    --hero-text: #FAF6E9;
    --hero-text-muted: rgba(250, 246, 233, 0.75);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 87, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --particle-gradient: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 255, 200, 0.4) 100%);
}

[data-theme="dark"] {
    --white: #0A1628;
    --gray-100: #050C16;
    --gray-300: #1A2744;
    --gray-500: #94A3B8;
    --gray-700: #E2E8F0;
    --gray-900: #F8FAFC;
    --dark: #FAF6E9;
    --dark-medium: #CBD5E1;
    --primary-light: rgba(0, 87, 255, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --gradient-hero: linear-gradient(160deg, #050C16 0%, #002BB3 50%, #008F72 100%);
    --hero-text: #E2E8F0;
    --hero-text-muted: rgba(226, 232, 240, 0.7);
    --particle-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(0, 212, 170, 0.2) 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
    text-align: left;
}

.section-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
    width: 100%;
}

.section-label::before {
    content: '';
    order: 2;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.8;
}

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

.text-center .section-subtitle {
    margin: 0 auto;
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-justify {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 87, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 87, 255, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid rgba(0, 87, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn i {
    font-size: 0.9em;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    opacity: 0.98;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1001;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    z-index: 1001;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.navbar.scrolled .nav-logo {
    transform: none;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-logo-text {
    color: var(--hero-text);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-text {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-cta {
    margin-left: 12px;
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary) !important;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--white) !important;
}

.navbar.scrolled .nav-cta {
    background: var(--primary);
    color: var(--white) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.navbar.scrolled .theme-switcher {
    background: var(--gray-100);
}

.theme-switcher i {
    font-size: 1.1rem;
    color: var(--hero-text);
    transition: var(--transition);
    position: absolute;
}

.navbar.scrolled .theme-switcher i {
    color: var(--gray-700);
}

.theme-switcher .fa-moon {
    transform: translateY(40px);
    opacity: 0;
}

.theme-switcher .fa-sun {
    transform: translateY(0);
    opacity: 1;
}

[data-theme="dark"] .theme-switcher .fa-sun {
    transform: translateY(-40px);
    opacity: 0;
}

[data-theme="dark"] .theme-switcher .fa-moon {
    transform: translateY(0);
    opacity: 1;
}

[data-theme="dark"] .theme-switcher i {
    color: var(--secondary);
}

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

.navbar.scrolled .theme-switcher:hover {
    background: var(--primary-light);
}

/* Language Switcher Compact */
.lang-switcher-wrapper {
    position: relative;
    margin-left: 8px;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.navbar.scrolled .lang-switcher-btn {
    background: var(--gray-100);
    color: var(--gray-700);
}

.lang-switcher-btn i {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Tablet and Desktop Dropdown */
@media (min-width: 769px) {
    .lang-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: var(--dark-blue);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 5px;
        min-width: 130px;
        display: none;
        flex-direction: column;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .lang-switcher-wrapper:hover .lang-dropdown,
    .lang-dropdown.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.lang-btn {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.lang-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* Mobile dropdown */
@media (max-width: 768px) {
    .lang-switcher-wrapper {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }

    .lang-dropdown {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        background: transparent;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    .lang-dropdown.show {
        display: flex;
    }

    .lang-btn {
        width: auto;
        padding: 8px 15px;
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 212, 170, 0.15) 0%, transparent 60%);
    animation: floatBg 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(0, 87, 255, 0.1) 0%, transparent 60%);
    animation: floatBg 20s ease-in-out infinite reverse;
}

@keyframes floatBg {

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

    50% {
        transform: translate(30px, -30px);
    }
}

/* Grid Pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--particle-gradient);
    border-radius: 50%;
    animation: particle-float linear infinite;
    filter: blur(0.5px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

@keyframes particle-float {
    0% {
        transform: translateY(110vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(50vh) translateX(20px) scale(1);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(-10px) scale(0.5);
        opacity: 0;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero h1 {
    color: var(--hero-text);
    margin-bottom: 24px;
    font-weight: 800;
}

.hero h1 .highlight {
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(0, 212, 170, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--hero-text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero-card-dot:nth-child(1) {
    background: #FF5F57;
}

.hero-card-dot:nth-child(2) {
    background: #FFBD2E;
}

.hero-card-dot:nth-child(3) {
    background: #28CA41;
}

.hero-code-lines {
    font-family: 'Fira Code', monospace;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
}

.code-line .line-number {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    width: 20px;
    text-align: right;
}

.code-line .code-tag {
    color: #FF79C6;
}

.code-line .code-attr {
    color: #50FA7B;
}

.code-line .code-value {
    color: #F1FA8C;
}

.code-line .code-text {
    color: rgba(255, 255, 255, 0.8);
}

.code-line .code-comment {
    color: rgba(255, 255, 255, 0.3);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--white);
    white-space: nowrap;
}

.floating-card.card-seo {
    top: 10%;
    right: -20px;
    animation: float 5s ease-in-out infinite 1s;
}

.floating-card.card-speed {
    bottom: 15%;
    left: -30px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--secondary);
}

/* --- Section Styles --- */
section {
    padding: 100px 0;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-light {
    background: var(--gray-100);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 14px;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    text-align: left;
}

.service-card .service-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.service-card .service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--gray-500);
}

.service-card .service-features li i {
    color: var(--secondary);
    font-size: 0.75rem;
}

/* --- Process Section --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 87, 255, 0.3);
}

.process-step h4 {
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* --- Pricing Section --- */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.pricing-tab-btn {
    padding: 12px 28px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.pricing-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.2);
}

.pricing-category {
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.pricing-grid,
.pricing-design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.pricing-design-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 30px auto 30px;
}

.pricing-design-grid .pricing-card {
    border: 1px solid var(--gray-100);
    background: linear-gradient(to bottom, var(--white), var(--gray-50));
    padding: 60px 40px;
    align-items: center;
    text-align: center;
}

.pricing-design-grid .pricing-card:hover {
    border-color: var(--primary);
    background: var(--white);
}

.price-box {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
}

.price-box .from {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.price-box .main-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.price-box .currency {
    font-size: 1.8rem;
    margin-left: 5px;
}

.pricing-design-grid .pricing-features {
    width: 100%;
}

.pricing-design-grid .pricing-features li {
    justify-content: center;
}

@media (max-width: 768px) {

    .pricing-grid,
    .pricing-design-grid {
        grid-template-columns: 1fr;
    }

    .pricing-design-grid .pricing-card {
        padding: 40px 20px;
    }
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 32px 40px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.pricing-card .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0 5px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-card .price-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 25px;
}

.pricing-card .pricing-features {
    margin: 0 0 40px;
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.pricing-card .pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-50);
}

.pricing-card .pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .pricing-features li i {
    color: var(--secondary);
    margin-top: 5px;
    font-size: 0.9rem;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

/* Glassmorphism utility for pricing */
.pricing-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #FFC107;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    text-align: left;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(0, 212, 170, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 87, 255, 0.2) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--hero-text);
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--hero-text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- About Page --- */
.page-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    text-align: center;
    overflow: hidden;
}

.hero-questions {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cloud-q {
    position: absolute;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: cloud-pulse var(--d, 6s) ease-in-out infinite alternate,
        cloud-fade var(--f, 10s) ease-in-out infinite;
    opacity: 0;
}

@keyframes cloud-pulse {
    0% {
        transform: scale(0.8) translateY(0);
    }

    100% {
        transform: scale(1.2) translateY(-15px);
    }
}

@keyframes cloud-fade {

    0%,
    100% {
        opacity: 0;
    }

    20%,
    80% {
        opacity: 0.25;
    }
}

/* Digital Factory Animation (Services) - Simplified to just gears */
.hero-gears {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.factory-gear {
    position: absolute;
    opacity: 0.15;
    animation: gear-rotate var(--r, 20s) linear infinite;
    transform: translate(-50%, -50%);
    color: #000;
}

@keyframes gear-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(var(--dir, 360deg));
    }
}

/* Paper Plane Animation (Contact) */
.hero-plane {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.plane-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.paper-plane {
    fill: rgba(255, 255, 255, 0.35);
    /* Transparencia aumentada */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--hero-text);
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--hero-text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: var(--hero-text-muted);
}

.page-breadcrumb a {
    color: var(--hero-text-muted);
}

.page-breadcrumb a:hover {
    color: var(--hero-text);
}

.page-breadcrumb .separator {
    color: var(--hero-text-muted);
    opacity: 0.5;
}

/* About Content */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.about-image-placeholder {
    background: var(--gradient-primary);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.about-image-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.value-card h3 {
    margin-bottom: 12px;
}

.value-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

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

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-card .team-role {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card p {
    color: var(--gray-500);
    font-size: 0.88rem;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

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

.faq-question i {
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding: 0 28px 22px;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 60px;
}

.contact-info-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: var(--hero-text);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 87, 255, 0.15) 0%, transparent 60%);
}

/* --- Projects Page Decoration --- */
.hero-ui-frames {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ui-frame {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(2px);
    animation: floatFrame var(--dur) ease-in-out infinite alternate;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ui-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.ui-frame::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

@keyframes floatFrame {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    100% {
        transform: translateY(-40px) rotate(5deg) scale(1.05);
    }
}

/* --- Projects Page --- */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: crop;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.9) 0%, rgba(10, 15, 30, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.btn-project {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-project:hover {
    color: var(--primary-light);
}

/* --- About, Service Detail & Legal Justification --- */
.about-text p,
.service-detail-content p,
.legal-section p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
}

.contact-info-card>* {
    position: relative;
    z-index: 1;
}

.contact-info-card h3 {
    color: var(--hero-text);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.contact-info-card>p {
    color: var(--hero-text-muted);
    margin-bottom: 36px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-projects-link {
    margin-top: 40px;
}

.projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hero-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.projects-btn:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(5px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-info-text h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px 32px;
}

/* Map placeholder */
.map-container {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    background: var(--gray-100);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Footer --- */
.footer {
    background: #050C16;
    /* Un tono aún más profundo que el dark original */
    color: var(--hero-text-muted);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .nav-logo {
    margin-bottom: 20px;
}

.footer-brand .nav-logo .nav-logo-text {
    color: var(--hero-text);
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer h4 {
    color: var(--hero-text);
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--hero-text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--secondary);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--hero-text-muted);
}

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

/* --- Toast notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #050C16;
    color: var(--hero-text);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--secondary);
}

.toast.error {
    border-left: 4px solid var(--accent);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #050C16;
    color: var(--hero-text);
    padding: 20px 0;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.88rem;
    color: var(--hero-text-muted);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--primary);
    color: var(--white);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hero-text-muted);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hero-text);
}

/* --- Services Page Specific --- */
.services-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.services-detail-grid:nth-child(even) {
    direction: rtl;
}

.services-detail-grid:nth-child(even)>* {
    direction: ltr;
}

.service-detail-visual {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.service-detail-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.service-detail-visual i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-detail-list {
    margin-bottom: 28px;
}

.service-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.service-detail-list li i {
    color: var(--secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-visual {
        display: none;
    }

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

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

    .process-timeline::before {
        display: none;
    }

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

    .pricing-card.featured {
        transform: none;
    }

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

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

    .about-intro {
        grid-template-columns: 1fr;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .services-detail-grid:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--white) !important;
        padding: 12px 24px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        background: var(--primary) !important;
        color: var(--white) !important;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 16px;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .lang-btn {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .lang-btn.active {
        background: var(--primary) !important;
        color: var(--white) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-hero {
        padding: 130px 0 70px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 30px 24px;
    }
}

/* --- Print Styles --- */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .cookie-banner {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    body {
        color: #000;
    }
}