/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark-pure: #070708;
    --bg-dark-main: #0c0c0e;
    --bg-card: #121215;
    --bg-card-hover: #17171c;
    --border-color: rgba(255, 255, 255, 0.05);
    
    --gold-primary: #e5c158;
    --gold-secondary: #f4dc96;
    --gold-dark: #bfa045;
    --gold-glow: rgba(229, 193, 88, 0.08);
    --gold-glow-strong: rgba(229, 193, 88, 0.2);
    
    --blue-primary: #38bdf8;
    --blue-glow: rgba(56, 189, 248, 0.1);
    
    --text-white: #f7f7f9;
    --text-cream: #faf6eb;
    --text-gray: #a1a1aa;
    --text-muted: #71717a;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Spacing */
    --section-padding: 100px 0;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-main);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    color: inherit;
}

/* Selection Highlight */
::selection {
    background-color: var(--gold-primary);
    color: var(--bg-dark-pure);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-pure);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Reusable Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   APP-LIKE WRAPPER & SCREEN STYLES (DESKTOP DEFAULT)
   ========================================================================== */
.app-wrapper {
    display: block;
    width: 100%;
}

.app-screen {
    width: 100%;
}

.bottom-nav {
    display: none;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-cream);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 2px;
}

.highlight-gold {
    color: var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-secondary) 30%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--gold-primary); }
.text-blue { color: var(--blue-primary); }
.sub-title-gold {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--text-cream);
    color: var(--bg-dark-pure);
    box-shadow: 0 4px 15px rgba(250, 246, 235, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--gold-primary);
    box-shadow: 0 6px 20px rgba(229, 193, 88, 0.25);
}

.btn-nav {
    background-color: var(--text-cream);
    color: var(--bg-dark-pure);
    padding: 8px 24px;
    font-size: 0.9rem;
    border-radius: 30px;
}

.btn-nav:hover {
    background-color: var(--gold-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: rgba(7, 7, 8, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--text-cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--text-cream);
    color: var(--bg-dark-pure);
    font-weight: 900;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid var(--gold-primary);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-gray);
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-cream);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-cream);
    transition: var(--transition-fast);
}

.mobile-only-cta {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: auto; /* Remove a altura mínima gigante que causa espaço vazio */
    padding-top: 130px; /* Mantém espaço suficiente abaixo da navbar fixa */
    padding-bottom: 20px; /* Reduz espaço abaixo do conteúdo */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(229, 193, 88, 0.05);
    border: 1px dashed rgba(229, 193, 88, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.tag-star {
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.15;
    color: var(--text-cream);
    font-weight: 400;
    margin-bottom: 24px;
    animation: fadeInLeft 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeInLeft 1s ease;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 1.2s ease;
}

.hero-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-cream);
    transition: var(--transition-fast);
}

.hero-contact-link:hover {
    color: var(--gold-primary);
    transform: translateX(4px);
}

.hero-contact-link i {
    font-size: 1.1rem;
}

/* Hero Image Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    max-width: 550px;
    width: 100%;
    animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image, .hero-video {
    width: 100%;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
    border-radius: 12px; /* Deixa as bordas arredondadas e super elegantes */
    display: block;
}

/* Floating Elements over the image */
.floating-tag {
    position: absolute;
    background-color: var(--text-cream);
    color: var(--bg-dark-pure);
    border: 1px solid var(--gold-primary);
    padding: 8px 18px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.floating-tag.tag-ti {
    animation: floatAnimation 5s ease-in-out infinite;
}

.floating-tag.tag-ia {
    animation: floatAnimation 6s ease-in-out infinite 1s;
}

.floating-tag .dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    display: inline-block;
}

.floating-tag .dot.azul {
    background-color: var(--blue-primary);
}

/* ==========================================================================
   SERVIÇOS SECTION (FIDELITY REFERENCE IMAGE 2)
   ========================================================================== */
.services-section {
    padding: 15px 0 100px; /* Reduz o preenchimento superior para aproximar da seção anterior */
    background-color: var(--bg-dark-main);
    position: relative;
}

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

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: default;
    animation: neonGlow 4s ease-in-out infinite;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.8s; }
.service-card:nth-child(3) { animation-delay: 1.6s; }
.service-card:nth-child(4) { animation-delay: 2.4s; }
.service-card:nth-child(5) { animation-delay: 3.2s; }

.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.service-card:hover {
    animation: none;
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: var(--blue-primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3), 
                inset 0 0 15px rgba(56, 189, 248, 0.15), 
                0 15px 35px rgba(0, 0, 0, 0.5);
}

.service-card:hover .card-border-glow {
    border-color: var(--blue-primary);
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Reference visual cue: card-index '01' with a diamonds or dots at corner */
.service-card::after {
    content: '◇';
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.service-card:hover::after {
    color: var(--gold-primary);
    transform: rotate(45deg);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 30px;
}

.service-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    border-color: var(--gold-primary);
    background-color: var(--gold-glow);
    transform: scale(1.1);
}

.emoji-icon {
    font-size: 1.4rem;
}

/* Style for blue accent specifically on IA Automation card */
.service-card[data-index="04"]:hover .service-icon-box {
    border-color: var(--blue-primary);
    background-color: var(--blue-glow);
}

.service-name {
    font-size: 1.5rem;
    color: var(--text-cream);
    margin-bottom: 16px;
    font-weight: 500;
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

@media (min-width: 769px) {
    .service-card[data-index="05"] {
        grid-column: span 2;
    }
}

/* ==========================================================================
   PORTFÓLIO / PROJETOS SECTION
   ========================================================================== */
.portfolio-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark-pure);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--bg-dark-pure);
    background-color: var(--text-cream);
    border-color: var(--text-cream);
}

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

.portfolio-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    animation: neonGlow 4s ease-in-out infinite;
}

.portfolio-item:nth-child(1) { animation-delay: 0s; }
.portfolio-item:nth-child(2) { animation-delay: 1s; }
.portfolio-item:nth-child(3) { animation-delay: 2s; }
.portfolio-item:nth-child(4) { animation-delay: 3s; }

.portfolio-item:hover {
    animation: none;
    transform: translateY(-5px);
    border-color: var(--blue-primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35), 
                inset 0 0 15px rgba(56, 189, 248, 0.2), 
                0 15px 35px rgba(0, 0, 0, 0.6);
}

.portfolio-img-box {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #17171a;
}

.portfolio-placeholder-img {
    font-size: 4rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

/* Distinctive project styles */
.tech-bg { background: linear-gradient(135deg, #1e1b4b, #311042); color: var(--gold-primary); }
.video-bg { background: linear-gradient(135deg, #022c22, #052e16); color: var(--text-cream); }
.devops-bg { background: linear-gradient(135deg, #0f172a, #1e293b); color: var(--blue-primary); }
.design-bg { background: linear-gradient(135deg, #450a0a, #3b0764); color: var(--gold-secondary); }

.portfolio-item:hover .portfolio-placeholder-img {
    opacity: 0.7;
    transform: scale(1.1);
}

.portfolio-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-category {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
}

.portfolio-title {
    font-size: 1.35rem;
    color: var(--text-cream);
    margin-bottom: 12px;
    font-weight: 500;
}

.portfolio-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
    flex-grow: 1;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-cream);
    transition: var(--transition-fast);
    align-self: flex-start;
}

.portfolio-link:hover {
    color: var(--gold-primary);
}

/* ==========================================================================
   SOBRE SECTION
   ========================================================================== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark-main);
    border-top: 1px solid var(--border-color);
}

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

/* About Visual Badge Card */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-badge-card {
    background-color: rgba(18, 18, 21, 0.4);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-badge-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                0 0 40px rgba(229, 193, 88, 0.05), 
                0 0 40px rgba(56, 189, 248, 0.05);
}

.about-badge-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--gold-primary);
    border-left: 2px solid var(--gold-primary);
    transition: var(--transition-smooth);
    animation: floatCornerTop 4s ease-in-out infinite;
}

.about-badge-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--blue-primary);
    border-right: 2px solid var(--blue-primary);
    transition: var(--transition-smooth);
    animation: floatCornerBottom 4s ease-in-out infinite;
}

.about-badge-card:hover::before {
    animation: none;
    transform: translate(-6px, -6px);
    width: 45px;
    height: 45px;
    border-width: 3px;
    filter: drop-shadow(0 0 8px var(--gold-primary));
}

.about-badge-card:hover::after {
    animation: none;
    transform: translate(6px, 6px);
    width: 45px;
    height: 45px;
    border-width: 3px;
    filter: drop-shadow(0 0 8px var(--blue-primary));
}

@keyframes floatCornerTop {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3px, -3px); }
}

@keyframes floatCornerBottom {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, 3px); }
}

.badge-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.badge-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-cream);
    font-weight: 600;
}

.badge-subtitle {
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 24px;
}

.badge-skills-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-skill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.about-badge-card:hover .badge-skill {
    transform: translateX(8px);
}

/* Staggered transition delay on hover */
.about-badge-card:hover .badge-skill:nth-child(1) { transition-delay: 0s; }
.about-badge-card:hover .badge-skill:nth-child(2) { transition-delay: 0.04s; }
.about-badge-card:hover .badge-skill:nth-child(3) { transition-delay: 0.08s; }
.about-badge-card:hover .badge-skill:nth-child(4) { transition-delay: 0.12s; }

.badge-skill i {
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.about-badge-card:hover .badge-skill i {
    transform: scale(1.25);
}

/* Custom interactive animations on hover for icons */
.about-badge-card:hover .badge-skill .fa-code {
    animation: bounceHorizontal 1.5s ease-in-out infinite;
}

.about-badge-card:hover .badge-skill .fa-gears {
    animation: spinGear 3s linear infinite;
}

.about-badge-card:hover .badge-skill .fa-film {
    animation: tiltClapper 1.5s ease-in-out infinite;
}

.about-badge-card:hover .badge-skill .fa-cubes {
    animation: pulseCube 1.5s ease-in-out infinite;
}

@keyframes bounceHorizontal {
    0%, 100% { transform: translateX(0) scale(1.25); }
    50% { transform: translateX(4px) scale(1.25); }
}

@keyframes spinGear {
    0% { transform: rotate(0deg) scale(1.25); }
    100% { transform: rotate(360deg) scale(1.25); }
}

@keyframes tiltClapper {
    0%, 100% { transform: rotate(0deg) scale(1.25); }
    50% { transform: rotate(-15deg) scale(1.25); }
}

@keyframes pulseCube {
    0%, 100% { transform: scale(1.25); }
    50% { transform: scale(1.4); }
}

.about-content {
    max-width: 600px;
}

.about-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--text-cream);
    line-height: 1.25;
    margin-bottom: 24px;
}

.about-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.skills-showcase {
    margin-top: 40px;
}

.skills-title {
    font-size: 1rem;
    color: var(--text-cream);
    margin-bottom: 16px;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

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

/* ==========================================================================
   CLIENTES / DEPOIMENTOS SECTION
   ========================================================================== */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark-pure);
}

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

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: var(--bg-card-hover);
    transform: translateY(-3px);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: var(--gold-primary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.testimonial-quote {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 24px;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-name {
    font-size: 0.95rem;
    color: var(--text-cream);
    font-weight: 500;
}

.author-company {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTATO SECTION (PREMIUM CARDS GRID & CENTRALIZED SOCIALS)
   ========================================================================== */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark-main);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
}

.center-title {
    margin-bottom: 20px;
}

.center-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-subtitle-center {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 300;
    max-width: 700px;
    margin-bottom: 50px;
    line-height: 1.7;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 60px;
}

.contact-grid-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.contact-grid-card.no-link {
    cursor: default;
}

.contact-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.contact-grid-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-grid-card:not(.no-link):hover::before {
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-grid-card:hover.no-link {
    transform: none;
    background-color: var(--bg-card);
    box-shadow: none;
}

.contact-grid-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

/* Hover effects for individual card icons */
.contact-grid-card:hover .icon-whatsapp {
    border-color: #25d366;
    background-color: rgba(37, 211, 102, 0.08);
    color: #25d366;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
}

.contact-grid-card:hover .icon-email {
    border-color: var(--blue-primary);
    background-color: var(--blue-glow);
    color: var(--blue-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--blue-glow);
}

.contact-grid-card:hover .icon-location {
    border-color: var(--gold-primary);
    background-color: var(--gold-glow);
    color: var(--gold-primary);
}

.contact-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-cream);
    margin-bottom: 12px;
    font-weight: 500;
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 300;
    transition: var(--transition-fast);
}

.contact-grid-card:hover .contact-card-value {
    color: var(--text-white);
}

.contact-card-action {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.contact-grid-card:hover .contact-card-action {
    color: var(--gold-secondary);
}

.contact-grid-card:hover .contact-card-action i {
    transform: translateX(4px);
}

.contact-card-action i {
    transition: var(--transition-fast);
}

.contact-card-action-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Social Media Section */
.contact-social-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    width: 100%;
}

.social-center-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-cream);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.social-networks-center {
    display: flex;
    gap: 20px;
}

.social-btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.01);
}

.social-btn-premium:hover {
    transform: translateY(-5px);
    color: var(--bg-dark-pure);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-btn-premium.wa-color:hover {
    background-color: #25d366;
    border-color: #25d366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.social-btn-premium.ig-color:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark-pure);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-cream);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

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

.footer-copy {
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.footer-copy strong {
    color: var(--text-cream);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes neonGlow {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.15);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.08),
                    inset 0 0 8px rgba(56, 189, 248, 0.04),
                    0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        border-color: rgba(56, 189, 248, 0.65);
        box-shadow: 0 0 22px rgba(56, 189, 248, 0.22),
                    inset 0 0 12px rgba(56, 189, 248, 0.12),
                    0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   TUTORIAIS & VIDEO CARDS
   ========================================================================== */
.tutorial-card {
    cursor: pointer !important;
}

.tutorial-thumb {
    position: relative;
}

.tutorial-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 8, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.tutorial-play-overlay i {
    font-size: 3.5rem;
    color: var(--text-cream);
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.tutorial-card:hover .tutorial-play-overlay {
    opacity: 1;
    background-color: rgba(7, 7, 8, 0.6);
}

.tutorial-card:hover .tutorial-play-overlay i {
    transform: scale(1.15);
    color: var(--blue-primary);
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6));
}

.tutorial-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.tutorial-btn i {
    font-size: 1rem;
    transition: var(--transition-fast);
}

.tutorial-card:hover .tutorial-btn {
    color: var(--blue-primary);
}

.tutorial-card:hover .tutorial-btn i {
    transform: scale(1.2);
}

/* Categorias de Tutoriais */
.tutorial-tag {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    display: inline-block;
    margin-bottom: 12px;
}

.tag-servidores {
    color: var(--gold-primary);
    border-color: rgba(229, 193, 88, 0.2);
    background-color: rgba(229, 193, 88, 0.04);
}

.tag-zabbix {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    background-color: rgba(16, 185, 129, 0.04);
}

.tag-edicao {
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.2);
    background-color: rgba(236, 72, 153, 0.04);
}

.tag-hacking {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.2);
    background-color: rgba(244, 63, 94, 0.04);
}

/* ==========================================================================
   VIDEO PLAYER MODAL
   ========================================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background-color: var(--bg-dark-pure);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.video-modal.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-cream);
    font-size: 1.85rem;
    line-height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: var(--transition-fast);
}

.video-modal-close:hover {
    background: var(--blue-primary);
    color: var(--bg-dark-pure);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--blue-primary);
    border-color: var(--blue-primary);
}

.video-modal-iframe-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.video-modal-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* ==========================================================================
   PLATAFORMA HÍBRIDA DE TUTORIAIS - ESTILOS ADICIONAIS & ADMIN
   ========================================================================== */

/* Barra de Ação & Botão Administrativo */
.admin-action-bar {
    display: inline-flex;
    align-items: center;
}

.btn-admin-toggle {
    background: rgba(18, 18, 21, 0.45);
    border: 1px solid rgba(229, 193, 88, 0.35);
    color: var(--gold-primary);
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(229, 193, 88, 0.05);
}

.btn-admin-toggle:hover {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
    color: var(--text-cream);
    box-shadow: 0 0 15px rgba(229, 193, 88, 0.2);
    transform: translateY(-1px);
}

.btn-admin-toggle i {
    margin-right: 6px;
    font-size: 0.95rem;
}

/* Painel Administrativo Expansível - Dashboard Premium */
.admin-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    margin-bottom: 0;
    width: 100%;
}

.admin-panel.active {
    max-height: 2500px; /* Aumentado para acomodar a tabela e formulários sem cortar */
    opacity: 1;
    margin-bottom: 40px;
}

.admin-panel-content {
    background: rgba(18, 18, 21, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.admin-panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.header-main-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-panel-title {
    font-size: 1.5rem;
    color: var(--text-cream);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.db-status-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.admin-panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 300;
}

/* Barra de Navegação de Abas */
.admin-nav-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.admin-nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text-cream);
}

.admin-tab-btn.active {
    color: var(--blue-primary);
    border-bottom-color: var(--blue-primary);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Containers de Abas */
.admin-tabs-container {
    position: relative;
    width: 100%;
}

.admin-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.admin-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ABA 1: VISÃO GERAL (DASHBOARD STATS) */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(7, 7, 8, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 25px rgba(229, 193, 88, 0.05);
    background: rgba(7, 7, 8, 0.5);
}

.stat-card.total-stat:hover {
    border-color: var(--blue-primary);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
    background: rgba(229, 193, 88, 0.05);
    border-color: rgba(229, 193, 88, 0.2);
}

.stat-card.total-stat:hover .stat-icon {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    color: var(--text-cream);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}

.db-info-panel-box {
    background: rgba(7, 7, 8, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
}

.db-info-header {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-cream);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-info-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.db-info-item {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 300;
}

.db-info-item strong {
    color: var(--text-cream);
    font-weight: 400;
}

.db-info-item code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* ABA 2: GERENCIAR POSTS (TABELA) */
.table-search-bar {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    background-color: rgba(7, 7, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-radius: 30px;
    padding: 12px 16px 12px 42px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2),
                inset 0 0 5px rgba(56, 189, 248, 0.1);
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
}

.admin-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-cream);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    padding: 14px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-gray);
    font-weight: 300;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-white);
}

.table-category-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-table-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-table-action.edit {
    color: var(--blue-primary);
    border-color: rgba(56, 189, 248, 0.2);
}

.btn-table-action.edit:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--blue-primary);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
    transform: scale(1.05);
}

.btn-table-action.delete {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-table-action.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

/* ABA 3: FORMULÁRIO (NOVO POST / EDIÇÃO) */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-cream);
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: rgba(7, 7, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25),
                inset 0 0 5px rgba(56, 189, 248, 0.1);
}

.form-group select option {
    background-color: var(--bg-dark-pure);
    color: var(--text-white);
}

.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit-admin {
    background-color: var(--text-cream);
    color: var(--bg-dark-pure);
    border: none;
    font-size: 0.9rem;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(250, 246, 235, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-admin:hover {
    background-color: var(--blue-primary);
    color: var(--bg-dark-pure);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-outline-admin {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-admin:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--text-cream);
    color: var(--text-cream);
    transform: translateY(-2px);
}

/* ABA 4: SEGURANÇA E CONFIGURAÇÕES */
.security-panel-box {
    background: rgba(7, 7, 8, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 30px;
}

.security-box-title {
    font-size: 1.15rem;
    color: var(--text-cream);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-box-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}

.security-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.security-input-wrapper input {
    width: 100%;
    padding-right: 50px !important;
}

.btn-toggle-visibility {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn-toggle-visibility:hover {
    color: var(--text-cream);
}

.security-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ==========================================================================
   MODAL HÍBRIDO (VÍDEO + ARTIGO EM TEXTO)
   ========================================================================== */

/* Redefinição do tamanho do container para o modal híbrido de 2 colunas */
.video-modal-container {
    width: 95%;
    max-width: 1200px; /* Mais largo para o layout de duas colunas */
    aspect-ratio: auto; /* Deixa fluir com base nas colunas */
    height: 85vh; /* Fixa altura ergonômica de visualização e leitura */
    display: flex;
    flex-direction: column;
}

.video-modal-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Coluna do vídeo mais larga */
    height: 100%;
    width: 100%;
}

.video-modal-media-pane {
    background-color: #000;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-modal-media-pane .video-modal-iframe-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-media-pane .video-modal-iframe-wrapper iframe {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-modal-text-pane {
    background-color: var(--bg-card);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
    overflow-y: auto;
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.video-modal-text-pane::-webkit-scrollbar {
    width: 6px;
}

.video-modal-text-pane::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}

.video-modal-text-pane::-webkit-scrollbar-thumb:hover {
    background: var(--blue-primary);
}

.video-modal-text-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.tutorial-modal-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.tutorial-modal-title {
    font-size: 1.4rem;
    color: var(--text-cream);
    font-family: var(--font-heading);
    line-height: 1.3;
}

.tutorial-modal-body {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tutorial-modal-body p {
    margin-bottom: 8px;
}

.tutorial-modal-body strong {
    color: var(--text-cream);
}

/* Blocos de Comando e Código com Botão de Copiar */
.cmd-block-wrapper {
    background: var(--bg-dark-pure);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin: 12px 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cmd-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-copy-cmd {
    background: none;
    border: none;
    color: var(--blue-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-copy-cmd:hover {
    color: var(--text-cream);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.cmd-block-code {
    padding: 14px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--blue-primary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    user-select: text;
}

/* Adaptação de Responsividade para Telas Menores */
@media (max-width: 900px) {
    .video-modal-container {
        height: 90vh;
        max-width: 650px;
    }

    .video-modal-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr; /* Vídeo fixo no topo, texto rolando abaixo */
        height: 100%;
        overflow: hidden;
    }

    .video-modal-media-pane {
        height: auto;
        aspect-ratio: 16/9;
    }

    .video-modal-media-pane .video-modal-iframe-wrapper {
        height: 100%;
    }

    .video-modal-text-pane {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        height: 100%;
        padding: 24px;
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Large screens and notebooks */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-container {
        gap: 20px;
    }
    
    .about-container {
        gap: 40px;
    }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    html {
        overflow: hidden;
    }
    
    /* Wrapper horizontal de abas */
    .app-wrapper {
        display: flex;
        width: 600%; /* 6 seções */
        height: calc(100vh - 65px - 70px); /* Descontando navbar superior e bottom-nav */
        margin-top: 65px;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }
    
    /* Cada tela individual móvel */
    .app-screen {
        width: 16.666%; /* 100% / 6 = 16.666% */
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-top: 20px;
        padding-bottom: 90px !important; /* Margem extra na base para o bottom-nav */
        position: relative;
    }

    /* Ocultar barra de rolagem horizontal interna se houver */
    .app-screen::-webkit-scrollbar {
        width: 4px;
    }
    
    /* Cabeçalho superior simplificado de App */
    .navbar {
        height: 65px;
        padding: 12px 0 !important;
        background-color: rgba(7, 7, 8, 0.85) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .nav-container {
        justify-content: space-between;
        position: relative;
        width: 100%;
    }
    
    .btn-nav {
        display: inline-flex !important; /* Sempre visível no mobile */
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        padding: 4px;
        z-index: 1100;
    }
    
    .menu-toggle .bar {
        width: 22px;
        height: 2px;
        background-color: var(--text-cream);
        transition: var(--transition-fast);
    }
    
    /* Transformação do botão em X quando ativo */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(7, 7, 8, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column !important;
        padding: 35px 24px;
        gap: 25px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu .nav-link {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        color: var(--text-gray);
        width: 100%;
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--text-cream);
        border-bottom-color: var(--gold-primary);
    }
    
    .mobile-only-cta {
        display: block !important;
        background-color: var(--text-cream) !important;
        color: var(--bg-dark-pure) !important;
        border-radius: 30px;
        padding: 12px 24px !important;
        font-weight: 500;
        text-align: center;
        border: none !important;
    }
    
    .mobile-only-cta:hover {
        background-color: var(--gold-primary) !important;
    }
    
    .mobile-only-cta::after {
        display: none !important;
    }

    /* Barra de Navegação Inferior Móvel Estilo Web App (Premium Glassmorphism) */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(12, 12, 15, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        padding: 6px 10px 10px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-family: var(--font-heading);
        font-size: 0.65rem;
        font-weight: 500;
        gap: 4px;
        transition: var(--transition-fast);
        flex: 1;
        position: relative;
        text-align: center;
    }
    
    .bottom-nav-item i {
        font-size: 1.15rem;
        transition: var(--transition-fast);
    }
    
    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--text-cream);
    }
    
    .bottom-nav-item.active i {
        color: var(--gold-primary);
        transform: translateY(-2px);
        filter: drop-shadow(0 0 6px rgba(229, 193, 88, 0.5));
    }
    
    /* Pequeno indicador sob a aba ativa */
    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background-color: var(--gold-primary);
        border-radius: 50%;
        box-shadow: 0 0 6px var(--gold-primary);
    }
    
    .hero {
        padding-top: 10px !important;
        padding-bottom: 5px !important;
        overflow: hidden !important; /* Desabilita rolagem vertical já que agora cabe perfeitamente na viewport */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 15px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-tag {
        margin-bottom: 10px;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 2.1rem !important;
        margin-bottom: 10px;
        line-height: 1.25;
    }

    .hero-actions {
        display: none !important;
    }
    
    .hero-subtitle {
        margin-bottom: 0px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-visual {
        margin-top: 8px;
    }

    .hero-image-wrapper {
        margin: 0 auto;
        max-width: 250px; /* Redução para 250px para garantir encaixe perfeito em 100vh móvel */
    }

    .floating-tag {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .floating-tag.tag-ti {
        top: 60%;
        left: 2%;
    }

    .floating-tag.tag-ia {
        bottom: 8%;
        right: 2%;
    }

    .services-section {
        padding: 10px 0 80px; /* Reduzido o padding superior de Serviços no tablet */
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 24px; /* Ajusta espaçamento interno no tablet/mobile */
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: 2;
    }
    
    .about-badge-card {
        max-width: 350px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
        margin: 0 auto 40px;
    }
    
    .footer-links {
        display: none !important; /* Esconde os links do footer no celular para evitar redundância */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .hero {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        overflow: hidden !important;
    }
    
    .hero-tag {
        margin-bottom: 8px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 1.95rem !important;
        line-height: 1.2;
    }

    .hero-image-wrapper {
        max-width: 220px; /* Redução para 220px em telas ultra-pequenas para garantir o não-scroll */
    }

    .floating-tag {
        display: none; /* Oculta as tags em celulares ultra-pequenos para focar no cérebro digital e evitar transbordo horizontal */
    }
    
    .services-section {
        padding: 10px 0 60px; /* Reduzido o padding superior de Serviços no celular ultra-pequeno */
    }

    .section-title {
        margin-bottom: 35px;
    }
    
    .portfolio-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-top: 15px;
        display: flex;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    
    .portfolio-filters button {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .contact-grid-card {
        padding: 30px 20px;
    }
    
    .social-btn-premium {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* ==========================================================================
   TELA DE LOGIN DO PAINEL DO CRIADOR (PREMIUM STYLE)
   ========================================================================== */
.admin-login-box {
    background: rgba(7, 7, 8, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 16px;
    padding: 45px 35px;
    text-align: center;
    max-width: 440px;
    margin: 40px auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(56, 189, 248, 0.08);
    transition: var(--transition-smooth);
    animation: loginGlow 5s infinite ease-in-out;
}

@keyframes loginGlow {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.08);
        border-color: rgba(56, 189, 248, 0.15);
    }
    50% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 35px rgba(56, 189, 248, 0.25);
        border-color: rgba(56, 189, 248, 0.55);
    }
}

.admin-login-form .form-group input {
    background-color: rgba(7, 7, 8, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-white) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    transition: var(--transition-fast) !important;
    outline: none !important;
    width: 100%;
}

.admin-login-form .form-group input:focus {
    border-color: var(--blue-primary) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35),
                inset 0 0 5px rgba(56, 189, 248, 0.15) !important;
}

/* Feedback de Erro com Efeito Shake e Brilho */
.login-error-message {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.shake-error {
    animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Hover no botão de sair (logout) */
.btn-admin-logout {
    transition: var(--transition-fast) !important;
}

.btn-admin-logout:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
    color: #ef4444 !important;
    transform: translateY(-1px) scale(1.02);
}

