/* =========================================
   Semeador Apps - Global Variables & Reset
   ========================================= */

:root {
    /* Colors */
    --bg-main: #060b13;
    --bg-darker: #03060a;
    --bg-card: rgba(13, 20, 36, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    --gradient-glow: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --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: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* =========================================
   Utility Classes
   ========================================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

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

.mt-sm {
    margin-top: var(--spacing-sm);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* =========================================
   Header & Navbar
   ========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(6, 11, 19, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo i {
    color: var(--accent-blue);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   Sobre Section
   ========================================= */

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.sobre-img {
    position: relative;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.logo-large {
    font-size: 8rem;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 16px;
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.sobre-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.sobre-content p strong {
    color: var(--text-main);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.tag i {
    color: var(--accent-cyan);
}

/* =========================================
   Serviços Section
   ========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1) inset;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

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

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
}

.service-card li i {
    color: var(--accent-cyan);
    margin-top: 4px;
}

/* =========================================
   Diferenciais Section
   ========================================= */

.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.diff-item {
    display: flex;
    gap: 1.5rem;
}

.diff-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.diff-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.diff-content p {
    color: var(--text-muted);
}

/* =========================================
   Tecnologias Section
   ========================================= */

.tech-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-scroller {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.tech-scroller::before,
.tech-scroller::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-scroller::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}

.tech-scroller::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.tech-list {
    display: inline-flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
}

.tech-list span {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    transition: var(--transition);
}

.tech-list span:hover {
    color: var(--text-main);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px var(--accent-blue);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

/* =========================================
   Portfolio Section
   ========================================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-img {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #111;
}

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

.portfolio-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.category {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   CTA Section
   ========================================= */

.cta-container {
    padding: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 20, 36, 0.8), rgba(20, 30, 50, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-content, .cta-action {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background-color: #020408;
    padding: 4rem 0 0 0;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    margin: 1rem 0 1.5rem 0;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links a, .footer-links p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

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

/* =========================================
   Animations & Reveal Classes
   ========================================= */

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

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

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

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .sobre-grid, .diff-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        right: 0;
        bottom: -10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .header .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-container {
        padding: 2rem;
    }
    
    .cta-action {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .cta-action .btn {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
