:root {
    --seleco-primary: #0d6efd;
    --seleco-accent: #6f42c1;
    --seleco-dark: #0f1419;
    --seleco-dark-2: #1a1f29;
    --seleco-text: #1f2937;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--seleco-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.text-white-75 { color: rgba(255,255,255,0.78); }

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(15, 20, 25, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    display: flex;
    align-items: baseline;
    font-weight: 600;
}

.navbar-brand .brand-suffix {
    color: var(--seleco-primary);
    font-size: 1.4rem;
    margin-left: 4px;
    font-weight: 700;
}

.navbar.scrolled .navbar-brand img {
    height: 32px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--seleco-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover { color: #fff !important; }
.navbar-nav .nav-link:hover::after { width: 60%; }

.nav-link-ext {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    margin-left: 0.5rem;
    padding: 0.4rem 1rem !important;
}
.nav-link-ext:hover { background: rgba(255,255,255,0.1); }
.nav-link-ext::after { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--seleco-dark) 0%, var(--seleco-dark-2) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/main.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(13,110,253,0.18), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(111,66,193,0.15), transparent 50%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-block;
    color: var(--seleco-primary);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero h1 {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-tile {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-tile:hover {
    background: rgba(13,110,253,0.18);
    border-color: rgba(13,110,253,0.5);
    transform: translateY(-3px);
}

.hero-tile i {
    color: var(--seleco-primary);
    font-size: 1.2rem;
}

.hero-tile span { font-weight: 500; }

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light { background: #f8f9fa; }

.section-dark {
    background: linear-gradient(135deg, var(--seleco-dark) 0%, var(--seleco-dark-2) 100%);
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(13,110,253,0.12), transparent 60%);
    pointer-events: none;
}

.section-dark > .container { position: relative; z-index: 2; }

.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--seleco-primary);
    border: none;
    border-radius: 4px;
    margin: 1.5rem auto;
    opacity: 1;
}

.divider-light { background: var(--seleco-primary); }

/* ---------- Value cards (O nas) ---------- */
.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--seleco-primary);
    margin-bottom: 1rem;
}

.value-card h5 {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* ---------- Project cards ---------- */
.project-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    color: #fff;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    background: rgba(13,110,253,0.08);
    border-color: rgba(13,110,253,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--seleco-primary), var(--seleco-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 18px rgba(13,110,253,0.3);
}

.project-card h3 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
}

.project-tagline {
    color: var(--seleco-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-card .text-muted {
    color: rgba(255,255,255,0.65) !important;
    flex-grow: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
}

.tech-pill {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 0.25rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ---------- Tech grid ---------- */
.tech-grid .tech-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.tech-grid .tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.tech-grid .tech-card i {
    font-size: 2.4rem;
    color: var(--seleco-primary);
}

.tech-grid .tech-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---------- Contact cards ---------- */
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(13,110,253,0.1);
    border-color: rgba(13,110,253,0.4);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--seleco-primary);
    margin-bottom: 1rem;
}

.contact-card h5 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-card a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card a:hover { color: var(--seleco-primary); }

/* ---------- Footer ---------- */
.footer {
    background: #06080b;
    padding: 2rem 0;
    color: rgba(255,255,255,0.7);
}

.footer a { text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--seleco-primary) !important; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--seleco-primary), var(--seleco-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(13,110,253,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(13,110,253,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero { min-height: auto; padding: 110px 0 60px; }
    .hero h1 { font-size: 2.4rem; }
    .section { padding: 70px 0; }
    .section-title { font-size: 2rem; }
    .navbar { padding: 0.6rem 0; }
}

@media (max-width: 575px) {
    .hero h1 { font-size: 2rem; }
    .project-card { padding: 1.5rem; }
    .navbar-brand .brand-suffix { font-size: 1.1rem; }
}
