/* ============================================
   COLOR PALETTE - Creative Web laboratory
   Tecnológico y Divertido
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    /* --color-primary: #FFBE0B;      /* Magenta vibrante */ */
    --color-accent1: #00F5FF;      /* Cyan brillante */
    --color-accent2: #FFBE0B;      /* Amarillo */
    --color-bg-dark: #0A0E27;      /* Azul oscuro profundo */
    --color-bg-card: #1A1F3A;      /* Azul oscuro para cards */
    --color-text: #E0E5FF;         /* Texto claro */
    --color-text-muted: #A0A5C0;   /* Texto secundario */
    --color-white: #FFFFFF;
    --color-light: #F8F9FF;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-dark);
    background-image: 
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(0, 245, 255, 0.08) 25%,
            rgba(255, 0, 110, 0.08) 50%,
            rgba(255, 190, 11, 0.08) 75%,
            transparent 100%
        ),
        radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 190, 11, 0.1) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    min-height: 100vh;
    position: relative;
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 { 
    font-size: 3rem; 
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2.5rem;
    color: var(--color-accent1);
}

h3 { 
    font-size: 1.8rem;
    color: var(--color-accent2);
}

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-shadow: none;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #FF4DA6);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

/* Scroll-reveal states (subtle) */
.reveal { opacity: 0; transition: opacity 0.55s ease, transform 0.55s ease; will-change: transform, opacity; }
.reveal-up { transform: translateY(16px); }
.reveal-left { transform: translateX(-22px); }
.reveal-right { transform: translateX(22px); }
.reveal.visible { opacity: 1; transform: translate(0,0); }
.hero-image-card, .hero-image-card img, .hero-image-card video { animation: none; }
.icon-wrapper { position: relative; }
.icon-wrapper::before { content: none; }
.btn-primary { transition: box-shadow 0.2s ease; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.2); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.visible { transition: none; opacity: 1; transform: none; }
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent1);
    border: 2px solid var(--color-accent1);
}

.btn-secondary:hover {
    background: var(--color-accent1);
    color: var(--color-bg-dark);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    color: var(--color-text);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    border-top: 2px solid var(--color-accent1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    padding: 0.5rem 0; /* space for the boxed header */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border: 1px solid rgba(10,14,39,0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(255, 0, 110, 0.3));
}

.logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.mobile-menu-toggle {
    display: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--color-bg-dark);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Orbitron', monospace;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent1));
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-bg-dark);
}

.main-nav a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 1rem 0;
    border: 1px solid var(--color-accent1);
    border-radius: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
}

.dropdown-menu a:hover {
    background: rgba(0, 195, 255, 0.1);
    color: var(--color-accent1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 1rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

/* Card con fondo claro para la imagen */
.hero-image {
    position: relative;
}

.hero-image-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FF 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(255, 190, 11, 0.2),
        inset 0 2px 10px rgba(255, 190, 11, 0.1);
    border: 3px solid rgba(255, 190, 11, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-video-wrapper {
    padding: 0;
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: bottom center;
}

.hero-image-card img {
    width: 100%;
    border-radius: 10px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.hero-text {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--color-accent1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-text h1,
.hero-text h2 {
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    color: #FFBE0B;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #FFBE0B;
    background-clip: unset;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 0rem 0;
    margin-bottom: 4rem !important;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #FFBE0B;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-block {
    background: var(--color-bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-block::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent1), var(--color-accent2));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-block:hover::before {
    opacity: 1;
}

.service-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.3);
}

/* Card blanco para el video */
.service-video {
    background: var(--color-white);
    padding: 1.5rem;
    margin: 0;
}

.service-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.service-content {
    padding: 2rem;
}

.service-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-dark) 100%);
}

.why-choose-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #FFBE0B;
}

/* Estilos para secciones con grids */
section.container > h2 {
    margin-bottom: 2rem !important;
    margin-top: 2rem !important;
    text-align: center !important;
    color: #FFBE0B !important;
}

section.container > h2:first-child {
    margin-top: 0 !important;
}

/* Margen inferior para secciones específicas - CONSOLIDADO */
.services-section {
    margin-bottom: 0 !important;
    padding-bottom: 3rem !important;
}

section.container.cases-section,
section.container.faq-section {
    margin-bottom: 0 !important;
    padding-bottom: 3rem !important;
}

section.container.cases-section h2,
section.container.faq-section h2 {
    text-align: center !important;
    margin-bottom: 2rem !important;
    margin-top: 2rem !important;
    color: #FFBE0B !important;
}

.cases-grid,
.faq-grid {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 1rem;
}

/* Force 3-per-row layout for specific grids on desktop */
.methodology-grid, .cases-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

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

/* ============================================
   LOGOS CAROUSEL
   ============================================ */
.logos-carousel {
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.logos-track {
    display: flex;
    gap: 3rem;
    animation: scrollLogos 30s linear infinite;
    width: fit-content;
}

.logo-item {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

a.logo-item {
    cursor: pointer;
}

a.logo-item:hover {
    text-decoration: none;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0);
}

/* Carruseles apaisados para Portfolio y Recursos */
.portfolio-carousel-item,
.resource-carousel-item {
    width: 320px;
    height: 180px;
    aspect-ratio: 16 / 9;
}

.portfolio-carousel-item img,
.resource-carousel-item img {
    object-fit: contain;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-item {
        width: 160px;
        height: 160px;
        padding: 0.4rem;
    }
    
    .logo-item img {
        border-radius: 6px;
    }
    
    .portfolio-carousel-item,
    .resource-carousel-item {
        width: 240px;
        height: 135px;
    }
    
    .logos-track {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logos-track {
        animation: none;
    }
}

.why-choose-item {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
}

.why-choose-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent1);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
    margin-bottom: 0;
}

.icon-wrapper {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0cyan ease;
}

.why-choose-item:hover .icon-wrapper {
    transform: scale(1.2);
    color: var(--color-accent1);
}

.why-choose-item h3 {
    margin-bottom: 1rem;
}

.why-choose-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   SPECIALTIES SECTION
   ============================================ */
.specialties-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-dark) 100%);
}

.specialties-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #FFBE0B;
}

.specialties-section .why-choose-grid {
    margin-bottom: 3rem;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.specialties-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.specialty-item {
    position: relative;
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.specialty-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent1), var(--color-accent2));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.specialty-item:hover::before {
    opacity: 1;
}

.specialty-item:hover {
    border-color: var(--color-accent1);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.3);
}

.specialty-icon {
    font-size: 2rem;
}

.specialty-text {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
}

.subsection {
    max-width: 900px;
    margin: 3rem auto;
    text-align: center;
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--color-accent1);
}

.subsection h3 {
    margin-bottom: 1.5rem;
}

.subsection p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ============================================
   PAGES STYLES (Servicios, etc.)
   ============================================ */
.page-header {
    padding: 1.5rem 0;
    text-align: center;
    background: var(--color-bg-card);
    border-bottom: 3px solid var(--color-accent1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-header h1 {
    margin-bottom: 0;
    color: #FFBE0B;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #FFBE0B;
    background-clip: unset;
}

/* Page header media + title layout */
.page-header .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.page-header .header-media video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .page-header .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.intro-section {
    padding: 3rem 0;
}

.intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.intro-section h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #FFBE0B;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    position: relative;
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--color-accent1);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.pricing-box {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--color-bg-card);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 60px rgba(0, 245, 255, 0.1);
}

.pricing-box h2 {
    color: var(--color-accent1);
    margin-bottom: 1rem;
}

.pricing-box p {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: var(--color-text);
}

.pricing-box .btn {
    margin-top: 1rem;
    display: inline-block;
}

.pricing-section {
    background: var(--color-bg-card);
    padding: 3rem;
    margin: 3rem auto;
    max-width: 1200px;
    border-radius: 20px;
    border: 2px solid var(--color-accent1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #FFBE0B;
}

.pricing-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

thead {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent1));
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

th {
    font-weight: 600;
    color: #FFBE0B;
}

tr:hover {
    background: rgba(255, 0, 110, 0.1);
}

.pricing-note {
    text-align: center;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--color-bg-card);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--color-accent1);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Card blanco para el robot del footer */
.footer-robot-card {
    background: var(--color-white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 3px solid rgba(255, 190, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-robot-card video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.contact-section {
    padding: 3rem 0;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--color-accent1);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--color-accent1);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--color-accent1);
}

.contact-form h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-accent1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    background: rgba(0,0,0,0.3);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent1);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

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

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 0.5rem;
    aspect-ratio: 1;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(to top, rgba(26, 31, 58, 0.95), transparent);
    padding: 1.5rem;
    color: var(--color-text);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.portfolio-overlay a {
    color: var(--color-accent2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-overlay a:hover {
    color: var(--color-primary);
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resources-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
    text-align: center;
}

.resources-intro h2 {
    margin-bottom: 1.5rem;
    color: #FFBE0B;
}

.resources-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.resource-item {
    position: relative;
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 0.5rem;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.resource-item img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    min-height: 0;
}

.resource-content {
    padding: 1rem;
    position: relative;
    flex-shrink: 0;
}

.resource-content h3 {
    margin-bottom: 0.5rem;
}

.resource-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.badge-beta {
    background: var(--color-accent1);
    color: var(--color-bg-dark);
}

.badge-alpha {
    background: var(--color-accent2);
    color: var(--color-bg-dark);
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.legal-nav {
    margin-bottom: 1rem;
}

.legal-nav a {
    color: var(--color-text-muted);
}

.separator {
    margin: 0 1rem;
    color: var(--color-text-muted);
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Pricing section responsive fixes */
    .pricing-section {
        padding: 1rem;
        margin: 1.5rem 0.75rem;
        border-radius: 14px;
    }

    .pricing-table-container {
        -webkit-overflow-scrolling: touch;
    }

    table {
        table-layout: fixed;
    }

    th, td {
        padding: 0.65rem;
        font-size: 0.95rem;
        white-space: normal;
        word-break: break-word;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    /* Header Mobile */
    .header-content {
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .logo img {
        max-height: 60px;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: 2px solid var(--color-bg-dark);
        color: var(--color-bg-dark);
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        cursor: pointer;
        border-radius: 5px;
        font-family: 'Orbitron', monospace;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

    .header-content:has(.main-nav.active) .mobile-menu-toggle,
    .mobile-menu-toggle.active {
        color: #FFBE0B;
        border-color: #FFBE0B;
    }

    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0rem 0;
        width: 100%;
    }

    .main-nav > ul > li {
        width: 100%;
        position: relative;
    }

    .main-nav > ul > li:not(:last-child) {
        border-bottom: 1px solid rgba(10, 14, 39, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
        color: var(--color-bg-dark);
    }

    .main-nav a::after {
        display: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        color: var(--color-bg-dark);
    }

    .dropdown .arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .dropdown.active .arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: relative;
        display: block;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(10, 14, 39, 0.08);
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }


    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown-menu li:not(:last-child) {
        border-bottom: 1px solid rgba(10, 14, 39, 0.05);
    }

    .dropdown-menu a {
        padding-left: 2rem;
        color: var(--color-bg-dark);
        font-size: 0.95rem;
        opacity: 0.8;
    }

    .dropdown-menu a:hover {
        background: rgba(10, 14, 39, 0.1);
        opacity: 1;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-image-card {
        padding: 1rem;
    }

    .hero-text {
        padding: 1.5rem;
    }

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

    .why-choose-grid,
    .methodology-grid,
    .cases-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        margin-left: -11px;
        margin-right: -11px;
        padding-left: 11px;
        padding-right: 11px;
    }

    .logos-carousel {
        margin-left: -11px;
        margin-right: -11px;
        padding-left: 11px;
        padding-right: 11px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
    }

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

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

    .portfolio-overlay {
        position: static;
        transform: translateY(0);
        background: rgba(26, 31, 58, 0.95);
        border-radius: 0 0 20px 20px;
    }

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