:root {
    /* 60% Grayscale - Professional & Clean */
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-bg-light: #fdfaf5;
    /* Refined Beige */
    --color-gray-lighter: #f8f9fa;
    --color-gray-light: #e9ecef;
    --color-gray: #6c757d;
    --color-gray-dark: #343a40;
    --color-dark: #212529;

    /* 30% Metallic Blue - Primary Accent */
    --color-accent: #3a506b;
    --color-accent-dark: #2c3e50;
    --color-accent-light: #5c7c9c;

    /* 10% Metallic Green - Subtle Accent */
    --color-green-metallic: #2e4a3c;
    --color-green-light: #436d58;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-serif: 'Cormorant Garamond',
        serif;
    --font-sans: 'Inter',
        sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-light);
    color: var(--color-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--color-white);
    padding: 30px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-gray-lighter);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container {
    flex-shrink: 0;
    text-align: center;
}

.logo-text {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    padding: 10px 0;
    transition: transform 0.3s ease;
    gap: 8px;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 0.8;
}

.logo-sub {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-black);
}

.logo-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    margin-top: -25px;
    color: var(--color-black);
    gap: 10px;
}

.logo-decoration::before,
.logo-decoration::after {
    content: "";
    flex-grow: 1;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    height: 3px;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
}

.logo-decoration span {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

.logo-white .logo-main,
.logo-white .logo-sub,
.logo-white .logo-decoration {
    color: var(--color-white);
}

/* Desktop: Single line layout */
@media (min-width: 769px) {
    .logo-text {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* Logo specific styles for footer (smaller) */
.footer-logo .logo-main {
    font-size: 2.8rem;
    font-weight: 500;
}

.footer-logo .logo-sub {
    font-size: 2.2rem;
}

@media (max-width: 768px) {
    .header-container {
        padding-left: 70px;
        justify-content: center;
    }

    .logo-main {
        font-size: 2.2rem;
    }

    .logo-sub {
        font-size: 1.7rem;
    }

    @media (max-width: 480px) {
        .logo-main {
            font-size: 1.8rem;
        }

        .logo-sub {
            font-size: 1.4rem;
        }
    }

    .logo-decoration {
        margin-top: -10px !important;
    }

    .footer-logo .logo-main {
        font-size: 2.4rem;
    }

    .footer-logo .logo-sub {
        font-size: 1.8rem;
    }
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-black);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-black);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 60px 0;
}

.hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    background: var(--color-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-light), var(--color-accent-dark));
    background-size: 400% 400%;
    animation: gradientAnimation 5s ease infinite;
    z-index: 1;
    opacity: 0.95;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    transition: all 0.5s ease;
}

/* CAROUSEL SPECIFIC */
.carousel-container {
    position: relative;
    overflow: hidden;
    height: 600px;
    /* Locked height for stability */
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 460px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* Nitidez Extrema */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.carousel-slide-1 {
    background-image: url('img/hero_infrastructure.jpg');
    background-position: right center;
    justify-content: flex-start;
    image-rendering: -webkit-optimize-contrast;
    background-blend-mode: normal;
}

.carousel-slide-1::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 50%);
    /* Aggressive fade-out to leave 50-100% area completely untouched */
}

.carousel-slide-1 .hero-content {
    text-align: left;
    padding-left: 6%;
    max-width: 480px;
    /* Even tighter for side placement */
    margin-left: 0;
}

@media (max-width: 768px) {
    .carousel-slide-1 {
        background-position: 70% center;
        /* Bring more of the AI head into view */
    }

    .carousel-slide-1 .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .carousel-slide-1::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    }

    .carousel-slide-1 .hero-actions {
        justify-content: center;
    }
}

.carousel-slide-1 .hero-title {
    font-size: 2.2rem;
    /* Smaller as requested */
}

.carousel-slide-1 .hero-subtitle {
    font-size: 1rem;
}

.carousel-slide-1 .divider {
    margin-left: 0;
    margin-right: auto;
}

.carousel-slide-1 .hero-actions {
    justify-content: flex-start;
}

.carousel-slide-2 {
    background-image: url('img/servicios_automation.png');
    justify-content: flex-start;
}

.carousel-slide-3 {
    background-image: url('img/sistemas_inteligentes.png');
    background-position: center;
    justify-content: flex-end;
    filter: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.carousel-slide-2::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0) 50%);
}

.carousel-slide-3::after {
    background: transparent;
}

.carousel-slide-2 .hero-content {
    text-align: left;
    padding-left: 6%;
    max-width: 480px;
    margin-left: 0;
}

@media (max-width: 768px) {
    .carousel-slide-2 .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .carousel-slide-2::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    }

    .carousel-slide-2 .hero-actions {
        justify-content: center;
    }
}

.carousel-slide-3 .hero-content {
    text-align: right;
    padding-right: 6%;
    padding-left: 0;
    max-width: 480px;
    margin-right: 0;
    margin-left: auto;
    color: var(--color-black);
}

@media (max-width: 768px) {
    .carousel-slide-3 .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .carousel-slide-3 .hero-actions {
        justify-content: center;
    }
}

.carousel-slide-3 .hero-title,
.carousel-slide-3 .hero-subtitle {
    color: var(--color-black);
}

.carousel-slide-3 .divider {
    background: var(--color-black);
    margin-right: 0;
    margin-left: auto;
}

.carousel-slide-3 .hero-actions {
    justify-content: flex-end;
}

.carousel-slide-3 .btn-secondary {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.carousel-slide-3 .btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.carousel-slide-2 .divider {
    margin-left: 0;
    margin-right: auto;
}

.carousel-slide-2 .hero-actions {
    justify-content: flex-start;
}


.carousel-slide-3 {
    background-image: url('img/sistemas_inteligentes.png');
    background-position: center;
    filter: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.carousel-slide.active .hero-content {
    animation: slideUpFade 0.8s ease forwards;
    z-index: 5;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-dots {
        bottom: 20px;
    }
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-white);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.badge {
    display: inline-block;
    background: var(--color-green-metallic);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(46, 74, 60, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    /* Globally smaller per user request */
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
    transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--color-white);
    margin: 0 auto 25px;
}

.hero-subtitle {
    font-size: 1rem;
    /* Globally smaller per user request */
    color: var(--color-gray-light);
    margin-bottom: 40px;
    line-height: 1.7;
    transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--color-gray-lighter);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-green-light);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-green-metallic);
    border-color: var(--color-green-metallic);
    color: var(--color-white);
}

/* ==================== METHODOLOGY SECTION ==================== */
.methodology-section {
    padding: 100px 0 60px;
}

.methodology-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.methodology-header .label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.methodology-header h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-black);
    margin-bottom: 20px;
    line-height: 1.1;
}

.methodology-header p {
    font-size: 1.15rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.methodology-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* More defined border */
    border-radius: 20px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Soft initial shadow */
}

.methodology-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-accent);
    transition: height 0.4s ease;
}

.methodology-item:hover {
    transform: translateY(-10px);
    background: var(--color-white);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
    /* Full accent border on hover */
}

.methodology-item:hover::before {
    height: 100%;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: rgba(44, 62, 80, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.method-icon i {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.methodology-item:hover .method-icon {
    background: var(--color-accent);
    transform: rotateY(180deg);
}

.methodology-item:hover .method-icon i {
    color: var(--color-white);
}

.methodology-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-black);
    margin-bottom: 15px;
}

.methodology-item p {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.methodology-footer {
    text-align: center;
}

.btn-text-link {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.btn-text-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    gap: 15px;
}

@media (max-width: 992px) {
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .methodology-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .methodology-section {
        padding: 60px 0 40px;
    }

    .methodology-header h2 {
        font-size: 1.8rem;
    }

    .methodology-header p {
        font-size: 1rem;
    }

    .methodology-item {
        padding: 30px 20px;
    }
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
}

.link-view-all {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-view-all:hover {
    color: var(--color-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: rgba(44, 62, 80, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 420px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .service-card {
        min-height: 380px;
    }

    .card-image-container {
        height: 160px;
    }

    .card-text-container {
        padding: 20px;
    }
}

.service-card:hover {
    transform: translateY(-12px);
    background: rgba(44, 62, 80, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.card-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.card-text-container {
    padding: 30px;
    background: var(--color-white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .card-text-container {
    background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-dark));
}

/* ── WEB DESIGN CARD ── */
.service-card-web .card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/web_design_mockup.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 2;
    filter: brightness(1.1) contrast(1.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Transition for smooth movement */
}

.service-card-web:hover .card-image-container::after {
    transform: scale(1.1) rotate(1deg);
    /* Micro-movement */
}

.service-card-web .card-icon {
    display: none;
}

/* ── AUTOMATION CARD ── */
.service-card-auto .card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/ai_automation.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 2;
    filter: brightness(1) contrast(1.3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-auto:hover .card-image-container::after {
    transform: scale(1.15) translateY(-5px);
}

.service-card-auto .card-icon {
    display: none;
}

/* ── EMAIL MARKETING CARD ── */
.service-card-email .card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/email_marketing.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1);
    transition: transform 0.6s ease-out;
}

.service-card-email:hover .card-image-container::after {
    transform: scale(1.1) translateX(5px);
}

.service-card-auto .card-icon,
.service-card-web .card-icon,
.service-card-email .card-icon,
.service-card-social .card-icon,
.service-card-database .card-icon,
.service-card-software .card-icon {
    display: none;
}

/* ── SOCIAL MEDIA CARD ── */
.service-card-social .card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/social_media_automation.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-social:hover .card-image-container::after {
    transform: scale(1.1);
}

/* ── DATABASE MANAGEMENT CARD ── */
.service-card-database .card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/database_management.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-database:hover .card-image-container::after {
    transform: scale(1.1);
}

.service-card-database .card-icon {
    display: none;
}

/* ── CUSTOM SOFTWARE CARD ── */
.service-card-software .card-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/custom_software.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center left;
    /* Slightly favor the code start */
    mix-blend-mode: normal;
    opacity: 1;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-software:hover .card-image-container::after {
    transform: scale(1.1);
}

.service-card-software .card-icon {
    display: none;
}

.service-card-social .card-icon {
    display: none;
    /* Hide icon to prioritize high-def image */
}

/* ── AUTOMATION CARD ── */

.card-icon {
    font-size: 3.5rem;
    color: var(--color-accent-light);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.service-card:hover .card-title {
    color: var(--color-white);
}

.card-description {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.service-card:hover .card-description {
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== STATS SECTION ==================== */
.premium-stats {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #050505, #111111);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.stats-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent-light);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.premium-stats .stats-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.premium-stats h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.premium-stats p {
    color: var(--color-gray-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

.premium-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Brighter initial border */
    border-radius: 24px;
    padding: 50px 30px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent-light);
    /* Accent border on hover */
    box-shadow: 0 0 30px rgba(var(--color-accent-rgb), 0.2), 0 30px 60px rgba(0, 0, 0, 0.5);
    /* Subtle glow + shadow */
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.stat-icon i {
    font-size: 2.2rem;
    color: var(--color-accent-light);
}

.stat-card:hover .stat-icon {
    background: var(--color-accent);
    transform: scale(1.1);
}

.stat-card:hover .stat-icon i {
    color: var(--color-white);
}

.premium-stats .stat-number {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    line-height: 1;
}

.premium-stats .stat-label {
    color: var(--color-gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@media (max-width: 992px) {
    .premium-stats .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .premium-stats {
        padding: 80px 20px;
    }

    .premium-stats h3 {
        font-size: 2.4rem;
    }

    .premium-stats .stat-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .premium-stats {
        padding: 60px 0;
    }

    .premium-stats h3 {
        font-size: 1.8rem;
    }

    .premium-stats p {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .premium-stats .stat-number {
        font-size: 3rem;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    margin-bottom: 8rem;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-gray-lighter);
    padding: 4rem;
    border-radius: 4px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.contact-form-wrapper p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--color-gray-lighter);
    background: #fafafa;
    color: var(--color-black);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-black);
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form button {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.contact-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-sidebar {
    display: grid;
    gap: 20px;
}

.sidebar-item {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #050505, #111111);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(255, 255, 255, 0.05) inset;
}

.sidebar-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-item i {
    font-size: 2.5rem;
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-white);
}

.sidebar-item h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-white);
}

.sidebar-item p {
    font-size: 0.95rem;
    color: var(--color-gray-lighter);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .contact-form-wrapper h3 {
        font-size: 1.8rem;
    }

    .contact-form button {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .sidebar-item {
        padding: 1.5rem;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #050505, #111111);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    color: var(--color-gray-light);
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--color-gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-gray-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--color-gray-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-white);
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 20px;
}

/* ==================== MENU & NAVIGATION ==================== */
.menu-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.dropdown-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    min-width: 280px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(255, 255, 255, 0.5) inset;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    z-index: 2100;
}

@media (max-width: 480px) {
    .dropdown-menu {
        width: 100%;
        min-width: unset;
        width: calc(100vw - 40px);
        left: 0;
        top: 60px;
    }
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(-10px);
}

.dropdown-menu.active .menu-link {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animation for Links */
.dropdown-menu.active .menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.dropdown-menu.active .menu-link:nth-child(2) {
    transition-delay: 0.15s;
}

.dropdown-menu.active .menu-link:nth-child(3) {
    transition-delay: 0.2s;
}

.dropdown-menu.active .menu-link:nth-child(4) {
    transition-delay: 0.25s;
}

.dropdown-menu.active .menu-link:nth-child(5) {
    transition-delay: 0.3s;
}

.dropdown-menu.active .menu-link:nth-child(6) {
    transition-delay: 0.35s;
}

.menu-link i {
    font-size: 1.25rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.menu-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-accent);
    padding-left: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.menu-link:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--color-accent-light);
}

/* ==================== PLANS SECTION ==================== */
.plans-section {
    padding: 80px 0;
    background: var(--color-white);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    border: 1px solid var(--color-gray-lighter);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-white);
    position: relative;
}

.plan-card.featured {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.badge-plan {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-green-metallic);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-black);
    word-wrap: break-word;
}

.plan-card .price span {
    font-size: 1rem;
    color: var(--color-gray);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    padding: 0 10px;
}

.plan-features li {
    margin-bottom: 15px;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: "✓";
    color: var(--color-green-metallic);
    font-weight: bold;
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-plan.primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-plan:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ==================== POLICIES SECTION ==================== */
.policies-section {
    padding: 80px 0;
    background: var(--color-gray-lighter);
}

.policies-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.policy-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.policy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.85);
}

.policy-item h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-black);
}

.policy-item p {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    padding: 80px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-divider {
    width: 60px;
    height: 3px;
    background: var(--color-black);
    margin: 20px auto;

}

