/* =====================================================
   ALBD - Advanced Logic & Business Develop
   Arquivo de Estilos CSS
   ===================================================== */

/* Reset e Configurações Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #E0E1DD;
    background-color: #0D1B2A;
    overflow-x: hidden;
}

/* Variáveis CSS para Cores e Espaçamentos */
:root {
    --primary-color: #0D1B2A;
    --secondary-color: #1B263B;
    --accent-color: #415A77;
    --text-light: #E0E1DD;
    --text-muted: #778DA9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Utilitários Gerais */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(45deg, #415A77, #778DA9);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.text-accent {
    color: #778DA9;
}

/* Animações */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.animate-fade-left {
    animation: fadeLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* =====================================================
   HEADER E NAVEGAÇÃO
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(119, 141, 169, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #778DA9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    transition: var(--transition);
}

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

/* Menu Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(65, 90, 119, 0.1) 0%, transparent 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 2rem;
    color: #778DA9;
}

.floating-card span {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* =====================================================
   SEÇÕES GERAIS
   ===================================================== */

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

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

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #778DA9;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

.services {
    background: var(--primary-color);
}

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

.service-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(65, 90, 119, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(119, 141, 169, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #778DA9;
    font-weight: bold;
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */

.projects {
    background: var(--secondary-color);
}

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

.project-card {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(65, 90, 119, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 27, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(65, 90, 119, 0.3);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(65, 90, 119, 0.5);
}

/* =====================================================
   PARTNERS SECTION
   ===================================================== */

.partners {
    background: var(--primary-color);
    overflow: hidden;
}

.partners-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.partners-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.partner-card {
    min-width: 350px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(65, 90, 119, 0.2);
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(119, 141, 169, 0.3);
}

.partner-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(119, 141, 169, 0.3);
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    border-color: #778DA9;
    transform: scale(1.05);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-name {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.partner-short-desc {
    color: #778DA9;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.partner-full-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.partner-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(119, 141, 169, 0.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: linear-gradient(45deg, #415A77, #778DA9);
    border-color: #778DA9;
    transform: scale(1.1);
}

.carousel-btn.prev {
    margin-left: -25px;
}

.carousel-btn.next {
    margin-right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(119, 141, 169, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: #778DA9;
    transform: scale(1.2);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact {
    background: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #415A77, #778DA9);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-muted);
}

/* Formulário */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--secondary-color);
    border: 1px solid rgba(65, 90, 119, 0.3);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #778DA9;
    box-shadow: 0 0 0 3px rgba(119, 141, 169, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--secondary-color);
    border-top: 1px solid rgba(65, 90, 119, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #778DA9;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(65, 90, 119, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(65, 90, 119, 0.5);
}

.social-link:hover {
    background: linear-gradient(45deg, #415A77, #778DA9);
    border-color: #778DA9;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(65, 90, 119, 0.2);
    padding-top: 2rem;
}

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

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

/* =====================================================
   RESPONSIVIDADE
   ===================================================== */

@media (max-width: 768px) {
    /* Header Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        gap: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        min-width: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        margin-left: -20px;
    }
    
    .carousel-btn.next {
        margin-right: -20px;
    }
    
    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}