/* ==========================================
   CODE BRIDGE - MAIN STYLES
   ========================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Poppins:wght@400;600;700&display=swap');

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Colors */
    --bg-dark: #020617;
    --bg-card: rgba(30, 41, 59, 0.5);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Fonts */
    --font-inter: 'Inter', sans-serif;
    --font-poppins: 'Poppins', sans-serif;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-inter);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

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

/* ==========================================
   GLOBAL UTILITIES
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn--secondary {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: white;
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   NAVBAR STYLES
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar--scrolled {
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo {
    font-family: var(--font-poppins);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.navbar__logo:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.navbar__logo-icon-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.navbar__logo-text-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar__menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.navbar__link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.navbar__link:hover::after {
    width: 100%;
}

.navbar__cta {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.navbar__cta:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.navbar__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar__mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

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

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

/* ==========================================
   HERO STYLES
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    padding: 80px 1rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--secondary-glow) 0%, transparent 40%);
    opacity: 0.15;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: heroFadeUp 1s ease-out forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero__title {
    font-family: var(--font-poppins);
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    padding: 0 10px;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
    padding: 0 1rem;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Carousels */
.hero__carousels {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding-top: 0;
    pointer-events: none;
    opacity: 0.35;
    filter: blur(0.5px);
    z-index: 1;
}

.carousel {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel__track {
    display: flex;
    width: max-content;
}

.carousel--top .carousel__track {
    animation: scrollLeft 120s linear infinite;
}

.carousel--bottom .carousel__track {
    animation: scrollRight 120s linear infinite;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-33.333%);
    }

    to {
        transform: translateX(0);
    }
}

.carousel__item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    margin: 0 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    flex-shrink: 0;
}

.carousel__item--image {
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.carousel__image-wrapper {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel__image-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
}

.carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ==========================================
   METHODOLOGY STYLES
   ========================================== */
.methodology {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--primary);
    color: #0f172a;
}

.methodology::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 0% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 90%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.methodology__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.methodology__header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 5;
}

.methodology__subtitle {
    display: inline-block;
    font-family: var(--font-poppins);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.15);
}

.methodology__title {
    font-family: var(--font-poppins);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.methodology__description {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.8;
}

.methodology__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
}

.methodology-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.methodology-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.methodology-card__image-container {
    width: 100%;
    height: 280px;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

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

.methodology-card:hover .methodology-card__image {
    transform: scale(1.05);
}

.methodology-card__content {
    padding: 3rem 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.methodology-card__icon-wrapper {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -36px;
    left: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.methodology-card:hover .methodology-card__icon-wrapper {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.3);
}

.methodology-card__icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.methodology-card:hover .methodology-card__icon {
    color: white;
}

.methodology-card__number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-poppins);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: #f1f5f9;
    z-index: 0;
}

.methodology-card__title {
    font-family: var(--font-poppins);
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.methodology-card__description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    max-width: 90%;
}

/* ==========================================
   SERVICES STYLES
   ========================================== */
.services {
    position: relative;
    padding: 8rem 2rem;
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
}

.services__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.services__header {
    text-align: center;
    margin-bottom: 5rem;
}

.services__subtitle {
    font-family: var(--font-poppins);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
}

.services__title {
    font-family: var(--font-poppins);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.services__description {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    background: rgba(15, 23, 42, 0.8);
}

.service-card__image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.service-card:hover .service-card__image {
    transform: scale(1.05);
    opacity: 1;
}

.service-card__content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card__header-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card__icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-card__icon-wrapper {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.service-card__icon {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.service-card__title {
    font-family: var(--font-poppins);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.service-card__description {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .tech-tag {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: white;
}

/* ==========================================
   PORTFOLIO STYLES
   ========================================== */
.portfolio {
    padding: 8rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
}

.portfolio__container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0;
}

.portfolio__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.portfolio__subtitle {
    display: inline-block;
    font-family: var(--font-poppins);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.portfolio__title {
    font-family: var(--font-poppins);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.portfolio__description {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Infinite Carousel */
.portfolio__carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2.5rem 0;
}

.portfolio__track {
    display: flex;
    width: max-content;
    animation: portfolioScroll 80s linear infinite;
}

.portfolio__track:hover {
    animation-play-state: paused;
}

@keyframes portfolioScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.portfolio-card {
    flex: 0 0 450px;
    margin-right: 2.5rem;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.portfolio-card__image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-card__image {
    object-fit: contain;
    background: #f8fafc;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.05);
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.portfolio-card__title {
    font-family: var(--font-poppins);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Image Error Placeholder */
.portfolio-card__image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px dashed var(--glass-border);
    color: var(--text-secondary);
    gap: 1rem;
    padding: 2rem;
}

.portfolio-card__image-placeholder svg {
    opacity: 0.5;
}

.portfolio-card__image-placeholder span {
    font-size: 0.9rem;
    text-align: center;
}

.portfolio-card__image.image-error {
    display: none;
}

/* Lightbox */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-lightbox__content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.portfolio-lightbox.active .portfolio-lightbox__content {
    transform: scale(1);
}

.portfolio-lightbox__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: #f1f5f9;
}

.portfolio-lightbox__image {
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.portfolio-lightbox__details {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.portfolio-lightbox__category {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.portfolio-lightbox__title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.portfolio-lightbox__description {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
}

.portfolio-lightbox__meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.meta-item h4 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.meta-item p {
    color: #0f172a;
    font-weight: 600;
}

.portfolio-lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: #f1f5f9;
    color: #0f172a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-lightbox__close:hover {
    background: #e2e8f0;
}

/* ==========================================
   CONTACT STYLES
   ========================================== */
.contact {
    padding: 10rem 2rem;
    background-color: #020617;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    filter: blur(120px);
    z-index: 0;
}

.contact__bg-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.contact__bg-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: none;
}

.contact__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact__subtitle {
    display: inline-block;
    font-family: var(--font-poppins);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.contact__title {
    font-family: var(--font-poppins);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.contact__description {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
}

.whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 30px -5px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta svg {
    width: 28px;
    height: 28px;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.footer {
    background-color: #0f0f1a;
    padding: 5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    filter: brightness(0) invert(1);
}

.footer__logo img {
    height: 40px;
    width: auto;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-3px);
}

.footer__column h4 {
    color: white;
    font-family: var(--font-poppins);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.footer__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: fit-content;
}

.footer__link:hover {
    color: white;
    transform: translateX(5px);
}

.footer__contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item svg {
    color: white;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-item strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.footer__bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: white;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Tablet y Escritorios pequeños */
@media (max-width: 1024px) {
    .hero__carousels {
        opacity: 0.25;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .portfolio-lightbox__content {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        flex: 0 0 350px;
    }
}

/* Móviles grandes y Tablets pequeñas */
@media (max-width: 768px) {
    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero__actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    .navbar__menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--glass-border);
        padding: 3rem 2rem;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        overflow-y: auto;
    }

    .navbar__menu--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar__mobile-toggle {
        display: flex;
    }

    .navbar__link {
        font-size: 1.2rem;
    }

    .navbar__cta {
        width: 100%;
        text-align: center;
        padding: 1.25rem;
    }

    .methodology__steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .methodology__title {
        font-size: 2.5rem;
    }

    .methodology-card {
        min-height: 450px;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services__title {
        font-size: 2.25rem;
    }

    .service-card {
        min-height: auto;
    }

    .service-card__image-container {
        height: 200px;
    }

    .service-card__content {
        padding: 2rem;
    }

    .contact {
        padding: 6rem 1.5rem;
    }

    .contact__title {
        font-size: 2.8rem;
    }

    .whatsapp-cta {
        width: 100%;
        justify-content: center;
        min-height: 60px;
    }

    .footer {
        padding: 5rem 1.5rem 2rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer__tagline {
        max-width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
        gap: 1.5rem;
    }

    .portfolio-lightbox__details {
        padding: 2rem;
    }

    .portfolio-lightbox__title {
        font-size: 1.8rem;
    }

    .portfolio-lightbox__image-container {
        min-height: 300px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero {
        align-items: center;
        padding-top: 100px;
    }

    .hero__title {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
        line-height: 1.2;
    }

    .hero__description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .carousel__image-wrapper {
        width: 280px;
        height: 210px;
    }

    .methodology {
        padding: 5rem 1rem;
    }

    .methodology-card__content {
        padding: 2.5rem 1.5rem;
    }

    .methodology-card__image-container {
        height: 180px;
    }

    .methodology-card__icon-wrapper {
        width: 60px;
        height: 60px;
        top: -30px;
        left: 1.5rem;
    }

    .methodology-card__title {
        font-size: 1.5rem;
    }

    .contact__title {
        font-size: 2.2rem;
    }

    .contact__subtitle {
        font-size: 0.8rem;
    }

    .contact__description {
        font-size: 1rem;
    }

    .contact__bg-logo img {
        width: 120%;
        height: auto;
    }

    .navbar__logo-text-img {
        height: 24px;
    }

    .navbar__logo-icon-img {
        height: 40px;
    }

    .navbar__container {
        padding: 0.75rem 1rem;
    }

    .portfolio-card {
        flex: 0 0 280px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .carousel__track,
    .hero__content,
    .btn,
    .portfolio__track {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}