/* 
   VELARDE.DEV DESIGN SYSTEM (Sensified-Inspired)
   Clean, Corporate, High-Tech Aesthetic
*/

:root {
    --bg-white: #0a0a0f; /* Modern deep dark */
    --bg-alt: #12121e;
    --bg-deep: #050508; 
    --primary-color: #009797; /* Sensified Teal */
    --primary-color-hover: #00cccc;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-on-dark: #f8fafc;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 151, 151, 0.3);
    
    --font-main: 'Montserrat', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: initial; /* Managed by Lenis */
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content but above some bg elements if needed */
    pointer-events: none;
    opacity: 0.6;
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 15px 0;
    background: #0a0a0f;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text span {
    color: var(--primary-color);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section - Mesh Gradient Entrance */
.hero {
    padding: 220px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 20% 30%, rgba(0, 151, 151, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    animation: mesh-float 20s infinite alternate ease-in-out;
}

@keyframes mesh-float {
    0% { background-position: 0% 0%; }
    100% { background-position: 10% 10%; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 50px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 40px;
    border-radius: 4px; /* More corporate sharp edges */
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 151, 151, 0.2);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 140px 0;
    position: relative;
}

section#servicios {
    background: radial-gradient(circle at 90% 10%, rgba(0, 151, 151, 0.05) 0%, transparent 40%);
}

section#portafolio {
    background: radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* Services Section (Sensified horizontal layout style) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.service-list {
    margin-top: 25px;
    list-style: none;
}

.service-list li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Skills Section */
.skills-section {
    background: var(--bg-deep);
    color: var(--text-on-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.portfolio-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.portfolio-meta {
    padding: 30px 0;
}

.portfolio-meta h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.portfolio-meta p {
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 4px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Contact */
.contact-section {
    background: var(--bg-alt);
}

.contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    overflow: hidden;
}

.contact-sidebar {
    padding: 60px;
    background: var(--bg-deep);
    color: #fff;
}

.contact-form-area {
    padding: 60px;
    background: var(--bg-white);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 80px 0;
    background: var(--bg-deep);
    color: #fff;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-links {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .contact-card { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3.5rem; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav { display: none; }
    .container { padding: 0 24px; }
    .section-title { font-size: 2.5rem; }
}
