/* ==================================
   NOBORDERTECH STYLES - REFINED
   ================================== */

:root {
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    
    --brand-blue: #5c90ad;
    --brand-cyan: #0ea5e9;
    --brand-teal: #0d9488;
    --silver-blue: #94aec3;
    
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================================
   DEEP SPACE BACKGROUND
   ================================== */
#stars-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #080a15 0%, #000000 100%);
    overflow: hidden;
}

/* Base Stars function simulated by a simple pattern to avoid too heavy box-shadow list */
#stars, #stars2, #stars3 {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; 
    height: calc(100vh + 1200px); /* Extend height so we can translate without leaving gaps */
}

#stars {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="400" cy="300" r="1" fill="white" opacity="0.8"/><circle cx="100" cy="150" r="1.5" fill="white" opacity="0.5"/><circle cx="700" cy="500" r="1" fill="white" opacity="0.3"/><circle cx="200" cy="450" r="0.5" fill="white" opacity="0.9"/><circle cx="600" cy="100" r="1.2" fill="white" opacity="0.6"/><circle cx="300" cy="550" r="1" fill="white" opacity="0.4"/><circle cx="50" cy="50" r="0.8" fill="white" opacity="0.7"/><circle cx="750" cy="200" r="1.5" fill="white" opacity="0.2"/><circle cx="500" cy="250" r="0.5" fill="white" opacity="0.8"/><circle cx="250" cy="350" r="1" fill="white" opacity="0.5"/><circle cx="650" cy="400" r="1" fill="white" opacity="0.6"/><circle cx="150" cy="550" r="1.5" fill="white" opacity="0.3"/><circle cx="10" cy="250" r="0.5" fill="white" opacity="0.9"/><circle cx="550" cy="50" r="1" fill="white" opacity="0.7"/><circle cx="350" cy="150" r="1.2" fill="white" opacity="0.4"/><circle cx="450" cy="450" r="0.8" fill="white" opacity="0.5"/><circle cx="70" cy="350" r="1" fill="white" opacity="0.6"/><circle cx="580" cy="300" r="0.5" fill="white" opacity="0.2"/><circle cx="280" cy="50" r="1.5" fill="white" opacity="0.8"/><circle cx="780" cy="550" r="1" fill="white" opacity="0.4"/></svg>') repeat;
    background-size: 300px 300px;
    animation: animStar 60s linear infinite;
}

#stars2 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="200" cy="100" r="2" fill="white" opacity="0.5"/><circle cx="600" cy="400" r="1.5" fill="white" opacity="0.3"/><circle cx="350" cy="500" r="2.5" fill="white" opacity="0.7"/><circle cx="750" cy="150" r="1" fill="white" opacity="0.6"/><circle cx="100" cy="300" r="2" fill="white" opacity="0.4"/><circle cx="450" cy="200" r="1.5" fill="white" opacity="0.5"/><circle cx="50" cy="500" r="1" fill="white" opacity="0.2"/><circle cx="650" cy="550" r="2" fill="white" opacity="0.8"/><circle cx="550" cy="100" r="1.5" fill="white" opacity="0.4"/><circle cx="250" cy="450" r="2.5" fill="white" opacity="0.6"/></svg>') repeat;
    background-size: 400px 400px;
    animation: animStar 100s linear infinite;
}

#stars3 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="400" cy="300" r="3" fill="white" opacity="0.4"/><circle cx="150" cy="150" r="2.5" fill="white" opacity="0.6"/><circle cx="700" cy="500" r="3" fill="white" opacity="0.3"/><circle cx="250" cy="450" r="3.5" fill="white" opacity="0.5"/><circle cx="600" cy="150" r="2.5" fill="white" opacity="0.7"/></svg>') repeat;
    background-size: 600px 600px;
    animation: animStar 140s linear infinite;
}

@keyframes animStar {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-1200px); /* 1200 is LCM of 300, 400, 600 so loop is clean jump */
    }
}


/* ==================================
   TYPOGRAPHY
   ================================== */
h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-cyan) 50%, var(--brand-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================================
   NAVIGATION
   ================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-cyan);
}

/* ==================================
   BUTTONS
   ================================== */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #5c90ad 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(92, 144, 173, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: #fff;
    transform: translateY(-2px);
}

.w-100 { width: 100%; }

/* ==================================
   LAYOUT & SECTIONS
   ================================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.fullscreen {
    min-height: 100vh;
    padding-top: 4rem;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

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

.grid-container-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ==================================
   CASOS SLIDER
   ================================== */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* bleed out to the edges */
    padding: 0 calc(50vw - 50% + 2rem); /* padding matching main wrapper */
}

.cases-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 1rem 0;
    width: 100%;
}

.cases-slider::-webkit-scrollbar {
    display: none;
}

.cases-slider .cyber-card {
    min-width: calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    width: 100%;
    scroll-snap-align: center;
    flex: 0 0 auto;
    height: auto;
    white-space: normal;
}

.slider-control {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--brand-cyan);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.slider-control:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--brand-cyan);
    transform: scale(1.1);
}

.slider-control.prev { left: 1rem; }
.slider-control.next { right: 1rem; }

@media (max-width: 992px) {
    .cases-slider .cyber-card { 
        min-width: calc(50% - 1rem); 
        max-width: calc(50% - 1rem);
    }
}
@media (max-width: 600px) {
    .cases-slider .cyber-card { 
        min-width: 85vw; 
        max-width: 85vw;
    }
}

/* ==================================
   HERO
   ================================== */
.hero { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 320px;
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.hero-info-right {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Ethereal top border light */
.hero-info-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
    opacity: 0.6;
}

.vision-icon {
    font-size: 2.5rem;
    color: var(--brand-cyan);
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1;
}

.vision-quote {
    font-size: 1.3rem;
    color: #f8fafc;
    line-height: 1.7;
    font-style: italic;
    font-weight: 300;
}

.vision-author {
    margin-top: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.profile-tags .ptag {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.profile-tags .ptag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    opacity: 1;
}

.badge {
    display: inline-block; padding: 0.4rem 1rem;
    border: 1px solid var(--brand-blue); border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--brand-cyan); margin-bottom: 2rem;
}

@keyframes netflixEntrance {
    0% {
        transform: scale(3.5);
        opacity: 0;
        filter: blur(15px) drop-shadow(0 0 40px rgba(59, 130, 246, 0.7));
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    }
}

.hero-logo {
    display: block;
    width: 300%;
    max-width: 600px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
    animation: netflixEntrance 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    will-change: transform, opacity, filter;
}

.hero-logo:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 25px rgba(6, 182, 212, 0.6));
}

.hero-actions { display: flex; gap: 1rem; margin-top: 3rem; }

/* ==================================
   CYBER CARDS (Replace glassmorphism)
   ================================== */
.cyber-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cyber-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(15, 15, 20, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cyber-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cyber-card .icon svg {
    width: 52px;
    height: 52px;
    stroke: #94aec3; /* silver-blue vibe */
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(148, 174, 195, 0.4));
    transition: all 0.3s ease;
}

.cyber-card:hover .icon svg {
    stroke: var(--brand-cyan);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
    transform: scale(1.05);
}


/* ==================================
   MARQUEE
   ================================== */
.marquee-container {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 100px; z-index: 2;
}

.marquee-container::before {
    left: 0; background: linear-gradient(to right, #000, transparent);
}

.marquee-container::after {
    right: 0; background: linear-gradient(to left, #000, transparent);
}

.marquee {
    display: flex;
    width: fit-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.marquee-content .dot {
    color: var(--brand-blue);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* ==================================
   FORM
   ================================== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: rgba(0,0,0,0.5);
}

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

/* ==================================
   FOOTER
   ================================== */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(0,0,0,0.9);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================================
   ANIMATIONS
   ================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-container-2col { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .contact-wrapper { padding: 2rem 1.5rem; border: none; }
}
