/* =====================================================
   INOXVAS S.L - PREMIUM DARK MODE DESIGN SYSTEM
   Color Principal: Gris Antracita (#2C3539)
   ===================================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Primary Color - Gris Antracita Scale */
    --primary-50: #F8F9FA;
    --primary-100: #E9ECEF;
    --primary-200: #DEE2E6;
    --primary-300: #ADB5BD;
    --primary-400: #6C757D;
    --primary-500: #2C3539;
    /* Base - Gris Antracita */
    --primary-600: #232A2D;
    --primary-700: #1A1F22;
    --primary-800: #121517;
    --primary-900: #0A0C0D;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Accent Colors */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(44, 53, 57, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(44, 53, 57, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(44, 53, 57, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(44, 53, 57, 0.2) 0%, rgba(44, 53, 57, 0.1) 100%);
    border: 1px solid rgba(44, 53, 57, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s var(--transition-smooth) forwards;
    opacity: 0;
}

.hero-title {
    font-size: 4.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s var(--transition-smooth) 0.2s forwards;
    opacity: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 50%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(44, 53, 57, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fade-in-up 0.8s var(--transition-smooth) 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: scale-in 0.6s var(--transition-bounce) 0.6s forwards;
    opacity: 0;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 1 !important;
    animation: fade-in-up 0.8s var(--transition-smooth) forwards;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 30%, var(--primary-400) 60%, var(--primary-500) 100%);
    background-size: 200% 200%;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(44, 53, 57, 0.5),
        0 4px 24px rgba(44, 53, 57, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--transition-smooth);
    animation: gradient-shift 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
        0 0 0 2px rgba(44, 53, 57, 0.8),
        0 8px 40px rgba(44, 53, 57, 0.6);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(44, 53, 57, 0.5);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    background: rgba(44, 53, 57, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===== HERO 3D SPHERE ===== */
.hero-visual {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    display: block;
    border-radius: 40px;
    object-fit: cover;
    filter: brightness(0.75); /* Oscurece la imagen */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(44, 53, 57, 0.4);
    transition: transform 0.6s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.sphere {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

.sphere-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(44, 53, 57, 0.1) 0%, rgba(44, 53, 57, 0.2) 100%);
    border-radius: 50%;
    border: 2px solid rgba(44, 53, 57, 0.3);
    box-shadow:
        0 0 60px rgba(44, 53, 57, 0.4),
        0 0 120px rgba(44, 53, 57, 0.3),
        inset 0 0 60px rgba(44, 53, 57, 0.2);
    backdrop-filter: blur(10px);
}

.sphere-ring {
    position: absolute;
    border: 2px solid rgba(44, 53, 57, 0.3);
    border-radius: 50%;
}

.ring-1 {
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    animation: rotate-ring 10s linear infinite;
}

.ring-2 {
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    animation: rotate-ring 15s linear infinite reverse;
}

.ring-3 {
    top: 30%;
    left: 30%;
    right: 30%;
    bottom: 30%;
    animation: rotate-ring 20s linear infinite;
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-quaternary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-500), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 53, 57, 0.05) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ===== SECTION STYLES ===== */
section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(44, 53, 57, 0.2);
    border: 1px solid rgba(44, 53, 57, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: linear-gradient(135deg, rgba(44, 53, 57, 0.15) 0%, rgba(44, 53, 57, 0.10) 50%, rgba(44, 53, 57, 0.15) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(44, 53, 57, 0.25);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(44, 53, 57, 0.45);
    box-shadow: 0 25px 50px -12px rgba(44, 53, 57, 0.35);
    transform: translateY(-4px);
}

/* ===== IMAGENES PERSONALIZADAS ===== */
.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s var(--transition-smooth);
    display: block;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.1);
}

.about-image-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== SERVICES SECTION ===== */
.services {
    background: radial-gradient(ellipse at top, rgba(44, 53, 57, 0.05) 0%, transparent 50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ===== FLIP CARDS ===== */
.service-card-flip {
    perspective: 1000px;
    height: 400px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: #1A1F22;
    border: 1px solid rgba(44, 53, 57, 0.2);
    position: relative;
}

.service-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s var(--transition-smooth);
    opacity: 0.9;
}

.service-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(18, 21, 23, 0.2) 0%,
            rgba(18, 21, 23, 0.8) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.service-card-front:hover .service-card-image {
    transform: scale(1.1);
}

.service-card-front:hover::before {
    background: linear-gradient(to bottom,
            rgba(18, 21, 23, 0.4) 0%,
            rgba(18, 21, 23, 0.9) 100%);
}

.service-icon-placeholder {
    display: none;
}

.service-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px;
    width: 100%;
    margin-bottom: 20px;
}

.service-title-front {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
    background: linear-gradient(135deg,
            rgba(18, 21, 23, 0.95) 0%,
            rgba(35, 42, 45, 0.95) 50%,
            rgba(18, 21, 23, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(44, 53, 57, 0.4);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.5),
        0 2px 4px -2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.service-title-back {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-description-brief {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(44, 53, 57, 0.3);
}

.service-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-tertiary);
    margin-bottom: 18px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: rgba(44, 53, 57, 0.3);
    border: 1px solid rgba(44, 53, 57, 0.4);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-300);
}

/* ===== SHOWCASE SECTION ===== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.showcase-item {
    overflow: hidden;
}

.showcase-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(44, 53, 57, 0.2) 0%, rgba(44, 53, 57, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 16px;
    font-size: 4rem;
    transition: transform 0.3s var(--transition-smooth);
}

.showcase-item:hover .showcase-image-placeholder {
    transform: scale(1.05);
}

.showcase-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.showcase-content p {
    color: var(--text-tertiary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.showcase-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.showcase-tags span {
    padding: 6px 12px;
    background: rgba(44, 53, 57, 0.2);
    border: 1px solid rgba(44, 53, 57, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-400);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: radial-gradient(ellipse at center, rgba(44, 53, 57, 0.05) 0%, transparent 70%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-500);
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.rating {
    font-size: 1.125rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(44, 53, 57, 0.2) 0%, rgba(44, 53, 57, 0.1) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(44, 53, 57, 0.3);
    box-shadow: 0 0 60px rgba(44, 53, 57, 0.3);
}

.about-text .section-label {
    margin-bottom: 16px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-paragraph {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.about-paragraph strong {
    color: var(--text-primary);
}

.about-cta {
    margin-top: 32px;
}

/* ===== CTA FINAL ===== */
.cta-final {
    background: radial-gradient(ellipse at center, rgba(44, 53, 57, 0.2) 0%, transparent 70%);
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-quaternary);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    text-align: center;
    padding: 24px;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-item p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(44, 53, 57, 0.1);
    border: 1px solid rgba(44, 53, 57, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(44, 53, 57, 0.15);
    box-shadow: 0 0 0 3px rgba(44, 53, 57, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(44, 53, 57, 0.2);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    transition: color 0.3s var(--transition-smooth);
}

.social-link:hover {
    color: var(--primary-400);
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(44, 53, 57, 0.2);
    color: var(--text-quaternary);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1023px) {
    :root {
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .sphere {
        width: 300px;
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .sphere {
        width: 200px;
        height: 200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    /* Mobile: Tap to flip */
    .service-card-flip.flipped .service-card-inner {
        transform: rotateY(180deg);
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.0625rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .particle:nth-child(n+20) {
        display: none;
    }
}

/* ===== FIXES FOR IMAGES & LOGO (FINAL TOUCHES) ===== */

/* 1. Logo Fix - Size & Constraint */
.nav-logo-img {
    height: 48px;
    width: auto;
    max-height: 48px;
    object-fit: contain;
    margin-right: 10px;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    max-height: 56px;
    object-fit: contain;
    margin-right: 10px;
}

/* 2. Service Cards - Perfect Image Centering */
.service-card-front {
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    /* Forces perfect centering */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.service-card-front:hover .service-image {
    transform: scale(1.1);
}

/* 3. Overlay Fix - Text Visibility */
.service-overlay {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%) !important;
    padding: 60px 20px 20px !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    margin-bottom: 0 !important;
}

.service-title-front {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    width: 100%;
    text-align: center;
}

/* ===== GALLERY SECTION STYLES ===== */

.gallery {
    padding: 100px 0;
    background: var(--bg-primary);
    /* Use dark background */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(44, 53, 57, 0.3);
    pointer-events: auto !important;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    border-color: var(--primary-500);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
    cursor: pointer !important;
    pointer-events: auto !important;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Hidden items for "Load More" functionality */
.hidden-gallery-item {
    display: none;
}

/* Animation for revealing items */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-item {
    animation: fadeInSlideUp 0.5s ease forwards;
    display: block !important;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }
}

/* ===== GALLERY LIGHTBOX (MODAL) ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
    line-height: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    background: rgba(44, 53, 57, 0.5);
    border-radius: 50%;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-500);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    height: auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

/* Responsive Modal */
@media only screen and (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}