/* Reset e Base */
:root {
    /* Dark Tech Palette */
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --bg-card-hover: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-primary: #00f3ff;
    /* Cyan Neon */
    --accent-secondary: #bc13fe;
    /* Electric Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 243, 255, 0.3);

    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    padding: 1rem 0;
}

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

.logo a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Section indicators */
.section-indicators {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 12px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.section-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 6px;
    border-radius: 8px;
    min-width: 45px;
}

.section-indicator:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.section-indicator.active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.section-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.15s ease;
}

.section-indicator.active .section-indicator-dot {
    background: var(--accent-primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-primary);
}

.section-indicator-label {
    font-size: 8px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}

.section-indicator.active .section-indicator-label {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Sections */
.section {
    padding: 180px 0;
    /* Further increased padding */
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 900px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 4rem 3rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
}

.hero-tech-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9;
    border-radius: 25px;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 3rem;
    text-align: center;
}

.hero-title {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 4rem;
    line-height: 1.1;
}

.hero-accent {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    font-weight: 800;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s infinite;
    margin-left: 5px;
    color: transparent;
    /* Hide the pipe character, use background instead */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

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

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.portfolio-image {
    height: 220px;
    width: 100%;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-project-image {
    width: 80%;
    /* Reduced by 20% */
    height: 80%;
    /* Reduced by 20% */
    object-fit: contain;
    /* Ensure logos are fully visible */
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-project-image {
    transform: scale(1.05);
    /* Subtle zoom on hover */
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-title::after {
    content: '→';
    font-family: var(--font-main);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.portfolio-item:hover .portfolio-title::after {
    opacity: 1;
    transform: translateX(0);
}

/* Financiamento Links */
.financiamento-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.financiamento-link {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-weight: 600;
}

.financiamento-link svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.financiamento-link:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.financiamento-link:hover svg {
    transform: scale(1.2);
}

/* Contato Section */
.contato-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.highlight-box {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    /* Visible gradient background */
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-primary);
    /* Stronger border */
    border-radius: 25px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    /* Center horizontally */
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.highlight-box:hover {
    box-shadow: 0 0 80px rgba(0, 243, 255, 0.2);
    transform: scale(1.02);
}

.highlight-box p {
    color: var(--text-primary);
    /* Ensure text is visible */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.email-link {
    font-size: 2rem;
    /* Larger font */
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    /* Ensure text is visible */
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

/* SVG Icons */
.servico-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.financiamento-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.portfolio-icon svg,
.portfolio-icon-fallback svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

/* Sections */
.section {
    padding: 80px 0;
    /* Reduced from 120px as requested */
    position: relative;
    overflow: hidden;
}

.portfolio-image.light-bg {
    background: #f0f0f0;
    /* Light background for dark logos */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.financiamento-contact h4 {
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.financiamento-contact a {
    color: var(--text-primary);
    /* Changed from accent to primary (white) for readability */
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    /* Ensure they stack nicely */
    margin-bottom: 0.5rem;
}

.financiamento-contact a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-container {
        padding: 2rem 1rem;
        /* Reduced padding */
        width: 95%;
        /* Ensure it fits within viewport */
        margin: 0 auto;
        /* Center it */
        max-width: 100%;
        /* Prevent overflow */
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Show section indicators on mobile as requested */
    .section-indicators {
        display: flex;
        bottom: 10px;
        /* Adjust position for mobile */
        padding: 6px 12px;
        gap: 8px;
        transform: translateX(-50%) scale(0.8);
        /* Scale down slightly */
        width: max-content;
        max-width: 90%;
        /* Ensure it doesn't overflow */
    }

    .highlight-box {
        width: 90%;
        /* Reduced width as requested (10% reduction implied) */
        padding: 2rem 1.5rem;
        /* Reduced padding */
        margin: 0 auto;
    }

    .email-link {
        font-size: 1.2rem;
        /* Adjust font size for mobile */
        padding: 0.8rem 1.5rem;
        word-break: break-all;
        /* Ensure long emails don't break layout */
    }
}