:root {
    --bg-color: #0a0a0a;
    --card-bg: #121212;
    --card-hover: #1a1a1a;
    --primary-color: #ffffff;
    --secondary-color: #a1a1aa;
    /* Light Gray text */
    --accent-color: #FFF;
    --border-color: #27272a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #a1a1aa 100%);
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #000000;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 10px;
    display: inline-block;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
    color: var(--secondary-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mobile-only {
    display: none;
}

.nav-links a {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
#hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* Allow wrapping on medium screens */
}

/* Override existing margin since we use gap now */
.btn-outline {
    margin-left: 0;
}

.img-placeholder-card {
    background: #131313;
    border-radius: 20px;
    height: 550px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);

}

#sobre {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.img-placeholder-card-sobre {
    background: #131313;
    border-radius: 20px;
    height: 720px;
    overflow: hidden;
    position: relative;
}

.img-placeholder-card-sobre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}


/* Tech Bar */
.tech-bar {
    background: black;
    padding: 60px 0;
    /* Increased padding */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.tech-title {
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.tech-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
    letter-spacing: normal;
}

/* Workflow Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    /* Reduced margin */
    /* border-top: 1px solid #222; Removed border */
    /* padding-top: 40px; Removed padding */
}

.workflow-item {
    text-align: center;
    padding: 20px;
}

.workflow-item i {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.workflow-item h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.workflow-item p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    /* Override default p styles if any */
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Services */
#services {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2,
.section-header-row h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p,
.section-header-row p {
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.service-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    border-color: #333;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Portfolio */
#portfolio {
    padding: 100px 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.view-all {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-card {
    cursor: pointer;
}

.project-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.project-img img {
    width: 100%;
    transition: transform 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--secondary-color);
}

/* Contact */
#contact {
    padding: 100px 0;
    background: #0d0d0d;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-wrapper p {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ccc;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
}

.btn-submit {
    width: 100%;
    background: white;
    color: black;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #e6e6e6;
}

/* CTA Final */
#cta-final {
    padding: 120px 0;
    text-align: center;
    /* Ensure text is centered */
}

#cta-final h2 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

#cta-final p {
    color: var(--secondary-color);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    /* Optional constraint for better readability */
}

.btn-primary.large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: white;
}

footer p {
    color: #444;
    font-size: 0.9rem;
}

/* Utility Animations */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

.animate-active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive & Mobile Menu */
@media (max-width: 992px) {
    p {
        text-align: justify;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .img-placeholder-card {
        margin: 0 auto;
        max-width: 500px;
        /* Limita a largura para centralizar melhor */
    }

    #sobre .hero-content {
        display: flex;
        flex-direction: column-reverse;
    }

    #sobre .img-placeholder-card-sobre {
        height: 400px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    #sobre .img-placeholder-card-sobre img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
        /* Above mobile menu */
    }

    /* Mobile Menu Styles */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 60%;
        /* Reduced width */
        max-width: 250px;
        /* Reduced max-width */
        background: rgba(10, 10, 10, 0.9);
        /* Transparency */
        backdrop-filter: blur(15px);
        /* Glass effect */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-left: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        /* Smoother transition */
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hide the "Contrate-me" button inside nav on mobile, or style it to fit */
    nav .btn-primary {
        display: none;
        /* Simplification for mobile menu */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    #hero {
        padding-top: 120px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .mobile-only {
        display: block;
        text-align: center;
        margin-top: 15px;
    }

    /* Stack buttons on mobile */
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
    }
}

/* Breadcrumb Navigation */
nav[aria-label="breadcrumb"] {
    padding: 20px 0;
    background: transparent;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: 0.95rem;
    color: var(--secondary-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb li:last-child {
    color: var(--secondary-color);
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item details {
    cursor: pointer;
    padding: 0;
}

.faq-item summary {
    padding: 20px;
    background: var(--card-hover);
    transition: background 0.3s;
    user-select: none;
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item details[open] summary {
    background: var(--card-hover);
    border-bottom: 1px solid var(--border-color);
}

.faq-item p {
    padding: 20px;
    color: var(--secondary-color);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-item summary {
        padding: 15px;
    }
    
    .faq-item p {
        padding: 15px;
    }
}