/* =========================================
   VARIABLES & THEMING
   ========================================= */
:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #f5f5f5;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dark: #1a1a1a;
    
    /* Vibrant Card Colors from Reference */
    --color-red: #ea5455;
    --color-orange: #f07b3f;
    --color-coral: #ff7e67;
    --color-peach: #f5a25d;
    
    --color-blue: #2d6cdf;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   TYPOGRAPHY & UTILS
   ========================================= */
.highlight {
    color: var(--text-primary);
    font-weight: 900;
}

.subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

.bg-red { background-color: var(--color-red) !important; color: white !important; }
.bg-orange { background-color: var(--color-orange) !important; color: white !important; }
.bg-coral { background-color: var(--color-coral) !important; color: white !important; }
.bg-peach { background-color: var(--color-peach) !important; color: white !important; }
.bg-light { background-color: var(--bg-light) !important; color: var(--text-dark) !important; }

.mt-4 { margin-top: 2rem; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1a51bb;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--bg-dark);
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--color-red);
}

.read-more {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition-smooth);
}

.read-more:hover::after {
    width: 100%;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar.scrolled .logo-icon-img {
    height: 45px;
}

.navbar.scrolled .logo-text strong {
    font-size: 1.1rem;
}

.navbar.scrolled .logo-text span {
    font-size: 0.6rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 5px; /* Reduzido em 50% acompanhando o tamanho do logo */
    font-family: var(--font-heading);
}

.logo-icon-img {
    height: 72px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-text {
    margin-left: 0;
}

.logo-text strong, .logo-text span {
    transition: var(--transition-smooth);
}

.logo-icon {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.logo-text strong {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.logo-text span {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.6rem; /* Aumentado em 30% (estava em 2rem) */
}

.nav-links a {
    font-size: 1.17rem; /* Aumentado em 30% (estava em 0.9rem) */
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hamburguer Animation to X */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1616469829581-73993eb86b02?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services {
    padding: 5rem 0;
    background-color: var(--bg-dark);
    margin-top: -5rem; /* Pull up to overlap hero slightly */
    position: relative;
    z-index: 10;
}

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

.service-card {
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

.service-card p:nth-of-type(1) {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* =========================================
   INTRO TEXT & IMAGE
   ========================================= */
.intro-text {
    padding: 6rem 0;
    background-color: var(--bg-darker);
}

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

.intro-left h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.intro-left p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.read-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-orange);
}

.rounded-image {
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats {
    padding: 4rem 0;
}

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

.stat-item h2 {
    font-size: 4rem;
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* =========================================
   PORTFOLIO PREVIEW
   ========================================= */
.portfolio-preview {
    background-color: var(--bg-dark);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.portfolio-overlay p {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--color-orange);
    text-transform: uppercase;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-darker);
    padding: 6rem 0 0 0;
}

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

.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.social-list {
    display: flex;
    gap: 4rem;
}

.social-list .col-left, .social-list .col-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-list a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.social-list a:hover {
    color: var(--color-orange);
    transform: translateX(10px);
}

.location h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.location p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

.fade-in-up.visible, 
.fade-in-left.visible, 
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .intro-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        width: 35px;
        height: 35px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Largura total para maior clareza */
        height: 100vh;
        background-color: var(--bg-darker);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem; /* Espaçamento generoso */
        transition: var(--transition-smooth);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.8rem; /* Tamanho marcante e legível */
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .logo-icon-img {
        height: 80px; /* Logo um pouco maior no mobile */
    }

    .logo-text strong {
        font-size: 1.8rem;
    }

    .logo-text span {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .social-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid, .grid-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.8rem; }
    
    .logo-icon-img {
        height: 70px; /* Um pouco menor para telas minúsculas, mas ainda legível */
    }

    .logo-text strong {
        font-size: 1.5rem;
    }

    .logo-text span {
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   PAGES & FORMS
   ========================================= */
.hero-small {
    height: 45vh;
    min-height: 400px;
}
.hero-small h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-top: 5rem;
}
.bg-darker { background-color: var(--bg-darker); }
.contact-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}
.form-control {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.8rem;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}
.form-control:focus {
    border-color: var(--color-orange);
}
