/* ============================================
   OB Sistemas - Corporate Website
   PHP / CSS / HTML Version
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0c0c0c;
    color: #f2f2f2;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section backgrounds */
.section-light {
    background-color: #f2f2f2;
    color: #1a1a1a;
}

.section-dark {
    background-color: #0c0c0c;
    color: #f2f2f2;
}

/* Labels */
.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #009fe3;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-header {
    margin-bottom: 56px;
}

.section-header.center {
    text-align: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(12px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo span {
    color: #f2f2f2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.7);
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #f2f2f2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #009fe3;
    transition: width 0.3s ease;
    transform-origin: left;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: #009fe3;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.nav-cta:hover {
    background: #00b4ff;
    transform: scale(1.02);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f2f2f2;
    transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(12,12,12,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    pointer-events: none;
}

.hero-label {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #f2f2f2;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-title-blue {
    color: #009fe3;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #999;
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    pointer-events: none;
}

.hero-ctas a {
    pointer-events: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 32px;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.btn svg {
    transition: transform 0.25s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: #009fe3;
    color: #fff;
}

.btn-primary:hover {
    background: #00b4ff;
    transform: scale(1.02);
}

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

.btn-outline:hover {
    border-color: #009fe3;
    color: #009fe3;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #009fe3;
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(20px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 32px;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0,159,227,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #009fe3;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-left .section-title {
    color: #f2f2f2;
    margin-bottom: 24px;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #999;
    margin-bottom: 16px;
}

.about-right {
    display: flex;
    justify-content: center;
}

.about-typo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.typo-word {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.06);
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

.typo-word.blue {
    color: rgba(0, 159, 227, 0.15);
}

/* Skills */
.skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #999;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: #009fe3;
    border-radius: 3px;
    width: 0%;
    transition: width 1.2s ease-out;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12,12,12,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f2f2f2;
    text-align: center;
    margin-bottom: 8px;
}

.portfolio-overlay span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #009fe3;
}

/* ============================================
   STATISTICS
   ============================================ */
.stats {
    position: relative;
    z-index: 10;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #f2f2f2;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 48px;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #1a1a1a;
}

.contact-row-link {
    transition: color 0.3s ease;
}

.contact-row-link:hover span {
    color: #25D366;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #009fe3;
    color: #fff;
    border-color: #009fe3;
}

/* Contact Form */
.contact-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #f8f8f8;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(0,159,227,0.1);
}

.contact-form textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    background: #009fe3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
    background: #00b4ff;
    transform: scale(1.01);
}

.form-success {
    text-align: center;
    padding: 48px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,159,227,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.form-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.875rem;
    color: #666;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 10;
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    max-width: 280px;
}

.footer-label {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 16px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-col a,
.footer-nav-col span {
    font-size: 0.875rem;
    color: #999;
    transition: color 0.3s ease;
}

.footer-nav-col a:hover {
    color: #f2f2f2;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 40px 0 24px;
}

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

.footer-bottom > span {
    font-size: 0.875rem;
    color: #999;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #009fe3;
    color: #fff;
    border-color: #009fe3;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #25D366;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-child.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .stats-grid {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
