/* 
   CTSoft - Estilos Premium v1.0
   Design: Modern, Sleek, Glassmorphism, Software-focused
*/

:root {
    --bg-dark: #05070a;
    --bg-surface: rgba(14, 18, 28, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #a855f7;
    --accent: #22d3ee;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    max-width: 100%;
}

.nav-links {
    display: none; /* Hide for mobile initially, can be expanded if needed */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    .nav-links a {
        text-decoration: none;
        color: var(--text-muted);
        font-weight: 500;
        transition: var(--transition);
        font-size: 0.95rem;
    }
    .nav-links a:hover {
        color: var(--text-main);
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInScale 0.8s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease-out both;
    animation-delay: 0.2s;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    animation: slideUp 1.2s ease-out both;
    animation-delay: 0.4s;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

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

/* Features/Services Section */
.services {
    padding: 6rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--card-shadow);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Apps Section */
.apps-showcase {
    padding: 6rem 0;
}

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

.app-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -20px var(--primary-glow);
}

.app-img-container {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.app-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.app-card:hover .app-img-container img {
    transform: scale(1.05);
}

.app-info {
    padding: 1.5rem;
}

.app-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.badge-pro { background: rgba(168, 85, 247, 0.2); color: var(--secondary); border: 1px solid var(--secondary); }
.badge-light { background: rgba(34, 211, 238, 0.2); color: var(--accent); border: 1px solid var(--accent); }

.app-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.app-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.contact {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.03));
}

.contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer style */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .contact-box {
        padding: 2rem 1.5rem;
    }
}
