:root {
    --bg-dark: #080b12;
    --bg-card: rgba(16, 23, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.3);
    
    --primary: #38bdf8;
    --primary-glow: #0284c7;
    --purple: #a855f7;
    --magenta: #ec4899;
    --cyan: #06b6d4;
    --emerald: #10b981;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(168, 85, 247, 0.1) 40%, rgba(8, 11, 18, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

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

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary);
}

.sub-title {
    display: inline-block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px 0 rgba(56, 189, 248, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(8, 11, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-nav {
    padding: 8px 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    color: var(--primary) !important;
}

.btn-nav:hover {
    background: var(--primary);
    color: #fff !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Hero Code Visual Card */
.hero-visual {
    position: relative;
}

.main-card {
    padding: 24px;
    position: relative;
}

.card-header-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-snippet {
    font-family: monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.code-keyword { color: var(--purple); }
.code-var { color: var(--primary); }
.code-func { color: var(--cyan); }
.code-str { color: var(--emerald); }
.code-bool { color: var(--magenta); }
.code-comment { color: #64748b; font-style: italic; }

.floating-badge {
    position: absolute;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: -20px; right: -20px; }
.badge-2 { bottom: -20px; left: -20px; animation-delay: 2s; }

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

/* Section Common */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

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

.service-card {
    padding: 36px;
}

.full-width-card {
    grid-column: span 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.icon-cyan { background: rgba(6, 182, 212, 0.1); color: var(--cyan); }
.icon-purple { background: rgba(168, 85, 247, 0.1); color: var(--purple); }
.icon-magenta { background: rgba(236, 72, 153, 0.1); color: var(--magenta); }
.icon-blue { background: rgba(56, 189, 248, 0.1); color: var(--primary); }
.icon-emerald { background: rgba(16, 185, 129, 0.1); color: var(--emerald); }

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features i {
    color: var(--emerald);
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
}

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

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

.portfolio-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(8, 11, 18, 0.85);
    border: 1px solid var(--border-glow);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
}

.portfolio-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fiscobot-bg {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(56, 189, 248, 0.2));
}

.tria-bg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}

.portfolio-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.portfolio-body {
    padding: 28px;
}

.portfolio-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.portfolio-tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.portfolio-actions {
    display: flex;
    gap: 16px;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-playstore {
    color: var(--emerald);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-container {
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.whatsapp-direct-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-direct-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.whatsapp-direct-btn i {
    font-size: 2.5rem;
    color: #25d366;
}

.whatsapp-direct-btn span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.whatsapp-direct-btn strong {
    font-size: 1.1rem;
    color: #25d366;
}

.contact-form h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(8, 11, 18, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.form-group option {
    background: #0f172a;
    color: #fff;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(4, 6, 10, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 350px;
    margin-top: 12px;
}

.footer-links h4 {
    margin-bottom: 12px;
}

.footer-links p {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .full-width-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}
