/* 
    Ponto Digital - The Technology Business Card
    Features: Light/Dark Mode, 3D CSS Animation, Minimal UI
*/

:root[data-theme="dark"] {
    --bg-dark: #05050A;
    --bg-surface: #0E0F15;
    --primary: #0066FF;
    --primary-hover: #3385ff;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 102, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.02);
}

:root[data-theme="light"] {
    --bg-dark: #F8FAFC;
    --bg-surface: #FFFFFF;
    --primary: #0055ff;
    --primary-hover: #0044cc;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 85, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.7);
}

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: white; padding: 8px; z-index: 10000; transition: top 0.2s; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.4s, color 0.4s;
    animation: pageFadeIn 0.5s ease-out;
}

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

/* Custom Webkit Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

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

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 50%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    transition: var(--transition);
}
.glass-panel:hover { border-color: var(--border-hover); box-shadow: 0 8px 30px rgba(0, 102, 255, 0.05); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-back {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: var(--transition); font-family: var(--font-body); font-size: 1rem; border: none;
}
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3); color: #fff; }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); border-color: var(--text-muted); }
.btn-back { background: transparent; color: var(--text-muted); padding: 0.5rem; text-decoration: underline; }
.btn-back:hover { color: var(--text-main); }

/* Theme Button */
.theme-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; transition: var(--transition);
}
.theme-btn:hover { background: var(--glass-bg); color: var(--primary); border-color: var(--primary); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.2rem 0; background: var(--bg-dark); opacity: 0.95; backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.navbar.hidden-nav {
    transform: translateY(-100%);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.logo-mark .p { color: var(--primary); }
.logo-mark .d { color: var(--text-main); }
.logo-type { font-size: 1rem; letter-spacing: 1px; color: var(--text-muted); }
.logo-type strong { color: var(--text-main); font-weight: 800; }
.nav-center { display: flex; gap: 2.5rem; }
.nav-link { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; position: relative; padding-bottom: 4px; }
.nav-link:hover { color: var(--text-main); }
/* Active State */
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary); border-radius: 2px; box-shadow: 0 0 10px var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; background: transparent; border: none; color: var(--text-main);
    font-size: 2rem; cursor: pointer; transition: var(--transition); margin-left: 0.5rem;
}

/* Home Hero (The Wow Factor) */
.hero { position: relative; padding: 10rem 0 6rem; overflow: hidden; display: flex; align-items: center; min-height: 100vh; }
.hero-bg-glow {
    position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,102,255,0.1) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
}
.hero-container { position: relative; z-index: 1; width: 100%; }
.hero-content { display: flex; justify-content: space-between; align-items: center; gap: 4rem; margin-bottom: 4rem; }
.hero-text-block { flex: 1; max-width: 650px; }
.hero-title { font-size: clamp(2.5rem, 4vw, 4.2rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; }

/* CSS 3D Cube Animation */
.hero-visual { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; perspective: 1000px; }
.scene { width: 250px; height: 250px; position: relative; animation: floatCube 6s ease-in-out infinite; cursor: pointer; }
.cube { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform: rotateX(-15deg) rotateY(45deg); }
.cube.spinning { animation: clickSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

.cube-face {
    position: absolute; width: 250px; height: 250px; background: rgba(0, 102, 255, 0.05);
    border: 2px solid var(--primary); box-shadow: inset 0 0 40px rgba(0, 102, 255, 0.2);
    display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--primary);
    backdrop-filter: blur(4px); border-radius: 12px;
}
.cube-face.front  { transform: translateZ(125px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(125px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(125px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(125px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(125px); background: rgba(0, 102, 255, 0.1); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(125px); box-shadow: 0 0 100px rgba(0, 102, 255, 0.5); }

.cube-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cube-logo .logo-mark { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.cube-logo .logo-mark .p { color: var(--primary); }
.cube-logo .logo-mark .d { color: var(--text-main); }
.cube-logo .logo-type { font-size: 1rem; color: var(--text-muted); }
.cube-logo .logo-type strong { color: var(--text-main); font-weight: 800; }

.click-hint { margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; animation: pulseHint 2s infinite; }

@keyframes floatCube { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes clickSpin { 0% { transform: rotateX(-15deg) rotateY(45deg); } 100% { transform: rotateX(-15deg) rotateY(405deg); } }
@keyframes pulseHint { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Cube Exploded State (Interactive) */
.cube.exploded .cube-face { background: rgba(245, 158, 11, 0.1); border-color: #F59E0B; box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.3); color: #F59E0B; }
.cube.exploded .cube-face.front  { transform: translateZ(180px); }
.cube.exploded .cube-face.back   { transform: rotateY(180deg) translateZ(180px); }
.cube.exploded .cube-face.right  { transform: rotateY(90deg) translateZ(180px); }
.cube.exploded .cube-face.left   { transform: rotateY(-90deg) translateZ(180px); }
.cube.exploded .cube-face.top    { transform: rotateX(90deg) translateZ(180px); background: rgba(245, 158, 11, 0.2); }
.cube.exploded .cube-face.bottom { transform: rotateX(-90deg) translateZ(180px); box-shadow: 0 0 100px rgba(245, 158, 11, 0.6); }
.cube.exploded .cube-logo .logo-mark .p { color: #F59E0B; }

/* Hero Micro Elements */
.hero-micro-elements {
    display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--border-color); padding-top: 2rem;
}
.micro-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.micro-item i { color: var(--primary); font-size: 1.2rem; }

/* Internal Page Header */
.page-header { padding: 10rem 0 4rem; position: relative; background: radial-gradient(circle at center top, rgba(0,102,255,0.05) 0%, transparent 70%); }
.page-header .hero-title { font-size: clamp(2rem, 4vw, 3.5rem); }

/* Trust Section */
.trust-section { padding: 4rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-card { padding: 2rem; text-align: left; }
.trust-icon { width: 48px; height: 48px; background: rgba(0,102,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
.trust-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.trust-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Metrics Section */
.metrics-section { padding: 4rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-surface); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.metric-number { display: block; font-size: 3rem; font-family: var(--font-heading); font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.metric-label { color: var(--text-main); font-weight: 600; font-size: 1rem; }
.metric-icon { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; display: flex; justify-content: center; }

/* Services Section */
.services-section { padding: 6rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { padding: 2.5rem; }
.service-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.service-list { display: flex; flex-direction: column; gap: 0.8rem; }
.service-list li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--text-muted); }
.service-list i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }

/* Funnel Section */
.funnel-section { padding: 6rem 0; background: var(--bg-surface); }
.funnel-step h2 { margin-bottom: 2rem; }
.funnel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.funnel-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    padding: 1.2rem; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 1rem; text-align: left;
}
.funnel-btn i { font-size: 1.5rem; color: var(--primary); }
.funnel-btn:hover { border-color: var(--primary); background: rgba(0,102,255,0.05); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,102,255,0.1); }

/* Brands */
.brands-section { padding: 4rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.brand-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.brands-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.brands-grid span { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-muted); transition: var(--transition); opacity: 0.6; }
.brands-grid span:hover { color: var(--text-main); opacity: 1; }

/* Founder Section */
.founder-section { padding: 2rem 0 6rem; }
.founder-wrapper { display: flex; gap: 3rem; padding: 3rem; align-items: center; max-width: 1000px; margin: 0 auto; border-radius: 20px; }
.circular-frame {
    width: 300px; height: 300px; border-radius: 50%; overflow: hidden;
    border: 4px solid var(--primary); box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
    display: flex; align-items: center; justify-content: center; background: var(--bg-surface);
}
.profile-img-circle { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.4s; }
.circular-frame:hover .profile-img-circle { transform: scale(1.05); }

/* Reviews */
.reviews-section { padding: 6rem 0; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.review-card { padding: 2rem; }
.stars { color: #F59E0B; margin-bottom: 1rem; font-size: 1.2rem; }
.review-text { font-style: italic; color: var(--text-main); margin-bottom: 1rem; }
.review-author { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

/* FAQ */
.faq-section { padding: 6rem 0; background: var(--bg-surface); }
.faq-container { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: var(--text-main); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; padding: 1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { transition: transform 0.3s; color: var(--primary); }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
.faq-answer p { padding-bottom: 1rem; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); background: var(--bg-surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .footer-slogan { margin-top: 1rem; color: var(--text-muted); }
.social-links { display: flex; gap: 1rem; }
.social-links a { font-size: 1.5rem; color: var(--text-muted); }
.social-links a:hover { color: var(--primary); }
.footer-info h4 { margin-bottom: 1rem; }
.footer-info p, .footer-link { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; }
.footer-link:hover { color: var(--primary); }
.footer-info i { color: var(--primary); margin-top: 3px; }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 2rem; color: var(--text-muted); font-size: 0.85rem; }

/* Clean Floating WhatsApp */
.floating-whatsapp {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background-color: #25D366; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000;
    transition: var(--transition);
}
.floating-whatsapp::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; background-color: #25D366; z-index: -1;
    animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
.floating-whatsapp:hover { transform: scale(1.1); background-color: #128C7E; }
.floating-whatsapp:hover::before { animation: none; opacity: 0; }

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Bento Grid for Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}
.bento-main { grid-column: span 2; grid-row: span 2; }
.bento-card { grid-column: span 2; }

/* S.O.S Remoto Off-Canvas */
.offcanvas-panel {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999; display: flex; justify-content: flex-end;
    visibility: visible; opacity: 1; transition: visibility 0.4s, opacity 0.4s;
}
.offcanvas-panel.hidden { visibility: hidden; opacity: 0; }

.offcanvas-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.offcanvas-content {
    position: relative; width: 100%; max-width: 450px; height: 100%;
    padding: 3rem 2rem; display: flex; flex-direction: column;
    transform: translateX(0); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
.offcanvas-panel.hidden .offcanvas-content { transform: translateX(100%); }

.close-btn {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: transparent; border: none; color: var(--text-muted);
    font-size: 1.8rem; cursor: pointer; transition: var(--transition);
}
.close-btn:hover { color: var(--text-main); transform: scale(1.1) rotate(90deg); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text-block { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    .trust-grid, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-main, .bento-card { grid-column: span 2; }
    .founder-wrapper { flex-direction: column !important; text-align: center !important; }
    .circular-frame { width: 250px; height: 250px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; z-index: 102; }
    
    .nav-center {
        display: flex !important; flex-direction: column; position: fixed; top: 0; right: -100%;
        width: 100vw; height: 100vh; background: var(--bg-surface); justify-content: center;
        align-items: center; gap: 2.5rem; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101; padding: 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-center.open { right: 0; }
    .nav-link { font-size: 1.5rem; }
    
    .nav-actions { gap: 0.5rem; }
    .sos-text { display: none; }
    
    .hero-title { font-size: 2.2rem; }
    .trust-grid, .metrics-grid, .services-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-main, .bento-card { grid-column: span 1; }
    .bento-main .service-list { grid-template-columns: 1fr !important; }
    
    /* Swipeable Reviews */
    .reviews-grid { 
        display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; 
        padding-bottom: 1rem; scrollbar-width: none; gap: 1.5rem;
    }
    .reviews-grid::-webkit-scrollbar { display: none; }
    .review-card { min-width: 85vw; scroll-snap-align: center; }
    
    /* Instagram Grid */
    .instagram-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    .funnel-grid { grid-template-columns: 1fr; }
    .funnel-btn[style*="span 2"] { grid-column: span 1 !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .scene { width: 200px; height: 200px; }
    .cube-face { width: 200px; height: 200px; font-size: 4rem; }
    .cube-face.front { transform: translateZ(100px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(100px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(100px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(100px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }
    .offcanvas-content { padding: 2rem 1.5rem; }
}
