:root {
    --bg-color: #000000;
    --accent-color: #FFC107;
    /* O Amarelo da sua logo */
    --text-primary: #FFFFFF;
    --text-dimmed: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(20, 20, 20, 0.7);
    --border-color: rgba(255, 193, 7, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

::selection {
    background: var(--accent-color);
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture Noise */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    background-color: var(--accent-color);
    color: black;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dimmed);
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    #navbar {
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .logo-text {
        font-size: 0.7rem;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: black !important;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    font-weight: 700;
}

.btn-secondary {
    background: var(--accent-color);
    color: black;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-outline {
    border: 1px solid var(--text-dimmed);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 5%;
    position: relative;
}

.hero-content {
    flex: 1;
}

.hero-label {
    color: var(--accent-color);
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.highlight {
    display: block;
    color: var(--accent-color);
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-dimmed);
    max-width: 500px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Hero Visual - Bold & Modern Desktop / Impactful Mobile */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.logo-hero-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
}


.logo-hero-box {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    color: #000;
    font-size: 10rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 0px rgba(255, 193, 7, 0.1);
}

.logo-hero-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: 1;
}

/* Floating Quadros Around the G */
.floating-quadro {
    position: absolute;
    border: 1px solid var(--accent-color);
    opacity: 0;
    z-index: -1;
    /* Passa por trás do texto */
    transition: transform 0.2s ease-out, opacity 0.4s ease;
    animation: entranceQuadro 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fq1 {
    width: 150px;
    height: 150px;
    top: -120px;
    left: -120px;
    border-radius: 40px 0 0 0;
    animation-delay: 0.2s;
    --start-x: -800px;
    --start-y: -400px;
}

.fq2 {
    width: 100px;
    height: 100px;
    bottom: -80px;
    right: -100px;
    animation-delay: 0.4s;
    --start-x: 800px;
    --start-y: 400px;
}

.fq3 {
    width: 220px;
    height: 80px;
    top: 180px;
    right: -250px;
    border-radius: 0 80px 80px 0;
    animation-delay: 0.6s;
    --start-x: 1000px;
    --start-y: 0;
}

.fq4 {
    width: 80px;
    height: 220px;
    bottom: 120px;
    left: -250px;
    border-radius: 80px 0 0 80px;
    animation-delay: 0.8s;
    --start-x: -1000px;
    --start-y: 200px;
}

@keyframes entranceQuadro {
    0% {
        opacity: 0;
        transform: translate3d(var(--start-x), var(--start-y), -500px) rotate(45deg);
    }

    100% {
        opacity: 0.2;
    }
}

.logo-hero-wrapper:hover .floating-quadro {
    opacity: 0.5;
}

@keyframes rotateLogo {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    50% {
        transform: rotateY(15deg) rotateX(5deg);
    }

    100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
}

/* About Section */
#about {
    padding: 100px 10%;
    background: #050505;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.skills-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h4 {
    color: var(--accent-color);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.skill-category p {
    font-size: 0.9rem;
    color: var(--text-dimmed);
    margin-bottom: 0 !important;
}

.about-visual {
    display: flex;
    justify-content: center;
}

/* Terminal Mockup */
.terminal-mockup {
    width: 100%;
    max-width: 450px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.7rem;
    color: var(--text-dimmed);
    font-family: monospace;
}

.terminal-body {
    padding: 25px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #eee;
}

.keyword {
    color: #f97583;
}

.variable {
    color: #ffab70;
}

.string {
    color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    #hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 80px 5% 40px;
        /* Reduzido o topo para tirar o vazio */
        min-height: auto;
        /* Remove o preenchimento total da tela */
    }

    .hero-visual {
        margin: 2rem 0;
        perspective: none;
    }

    .logo-hero-wrapper {
        width: 130px;
        height: 130px;
        margin: 0 auto;
        transform: none !important;
        /* Estático no mobile */
    }

    .logo-hero-box {
        font-size: 5.5rem;
    }

    .logo-hero-back {
        top: 12px;
        left: 12px;
    }

    .floating-quadro {
        opacity: 0.2 !important;
        animation: none !important;
        /* Sem animação de entrada no mobile */
        z-index: -1;
    }

    /* Quadros menores e fixos ao redor do G no mobile */
    .fq1 {
        width: 60px;
        height: 60px;
        top: -30px;
        left: -30px;
    }

    .fq2 {
        width: 50px;
        height: 50px;
        bottom: -20px;
        right: -30px;
    }

    .fq3 {
        width: 100px;
        height: 40px;
        top: 100px;
        right: -80px;
    }

    .fq4 {
        width: 40px;
        height: 100px;
        bottom: 60px;
        left: -80px;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-visual .terminal-mockup {
        display: none;
    }
}

.dimmed {
    color: var(--text-dimmed);
    font-weight: 300;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px auto 0;
    justify-content: center;
    max-width: 1000px;
    /* Limitado para que 2 projetos fiquem bem agrupados */
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card.large {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .project-card.large {
        grid-column: span 1;
    }

    h1 {
        font-size: 2.5rem;
    }

    #hero {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        padding: 120px 5% 50px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        margin-top: 50px;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    #hero p {
        margin: 0 auto 2rem;
    }

    .grid-animation {
        width: 200px;
        height: 200px;
    }
}

.project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.project-image {
    height: 250px;
    background: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    background-size: cover;
    /* Garante que a imagem preencha o espaço */
    background-position: center;
    /* Centraliza a imagem */
    background-repeat: no-repeat;
}


#p1 {
    background-image: url('img/sec.png');
}

#p2 {
    background-image: url('img/gqViagens.png');
}

#p3 {
    background: linear-gradient(to bottom, #111, #FFC10722);
}

.project-info h3 {
    margin-bottom: 10px;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 2px 8px;
    display: inline-block;
    margin-top: 15px;
}

/* Footer */
footer {
    padding: 100px 10% 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo p {
    font-weight: 700;
    line-height: 1;
}

.footer-logo span {
    color: var(--accent-color);
    font-size: 0.7rem;
    letter-spacing: 3px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-dimmed);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual {
    perspective: 1000px;
    transition: transform 0.1s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(255, 193, 7, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-dimmed);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Form Styles */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}

label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dimmed);
}

input,
textarea {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    color: white;
    font-family: inherit;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #151515;
}

.full-width {
    width: 100%;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    /* Amarelo da logo */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #000;
    /* Ícone preto para contrastar com o fundo amarelo */
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}


@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}