/* 
* Forma - Site de Portfólio
* Estilo principal - Otimizado
*/

/* Importar fonte Inter do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variáveis */
:root {
    /* Variáveis de cores - tema escuro */
    --primary-color: #1e70f0;
    --accent-color: #52a9ff;
    --text-color: #f5f5f5;
    --bg-color: #000000;
    --bg-color-rgb: 0, 0, 0;
    --card-bg: rgba(30, 30, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --highlight-color: rgba(82, 169, 255, 0.15);
    --section-bg: #1e1e1e;
    --glow-color: rgba(30, 112, 240, 0.5);
    --secondary-bg: rgba(30, 30, 30, 0.6);

    /* Espaçamentos */
    --space-xs: 0.25rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Arredondamentos */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Outros */
    --transition-standard: all 0.3s ease;
    --max-width: 1200px;

    /* Fontes */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-headings: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Larguras */
    --container-width: 1200px;
    --container-padding: 2rem;

    /* Bordas */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 12px;

    /* Z-indexes */
    --z-index-header: 1000;
    --z-index-modal: 2000;
    --header-height: 70px;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 300;
    letter-spacing: 0.02em;
    position: relative;
    background-image: url('../img/desktop-bg.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-standard);
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 12px var(--glow-color);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-main);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-index-header);
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.header.hidden {
    transform: translateY(-100%);
}

.header.show {
    transform: translateY(0);
}

.header.scrolled {
    background-color: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo a {
    display: flex;
    align-items: center;
    transition: var(--transition-standard);
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-standard);
}

.logo a:hover img {
    filter: drop-shadow(0 0 12px var(--glow-color));
    transform: scale(1.05);
}

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

.main-nav a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-standard);
    box-shadow: 0 0 12px var(--glow-color);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    width: 32px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-standard);
    border-radius: 4px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1 !important;
    visibility: visible !important;
}

body.menu-open {
    overflow: hidden;
}

.mobile-nav ul {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav ul li a {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 400;
    transition: var(--transition-standard);
    padding: 0.5rem 1rem;
    display: inline-block;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Fundo agora é global, não precisa definir aqui */
    position: relative;
}

.hero {
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    background: radial-gradient(circle, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 400;
    transition: var(--transition-standard);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px var(--glow-color);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--glow-color);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px var(--glow-color);
}

/* Seções Gerais */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 2rem;
    box-shadow: 0 0 15px var(--glow-color);
    border-radius: 3px;
}

/* Título da seção "Sobre nós" alinhado à esquerda */
.about .section-title {
    text-align: left;
}

.about .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
    font-weight: 300;
}

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

.portfolio-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: rgba(var(--secondary-bg), 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-standard);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--glow-color);
    border-color: var(--accent-color);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.portfolio-info p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-weight: 300;
}

.read-more {
    display: inline-block;
    font-weight: 400;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition-standard);
}

.read-more:hover::after {
    margin-left: 10px;
    text-shadow: 0 0 12px var(--glow-color);
}

/* Services Section - Styles moved to carousel.css */

.services-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
    margin-top: 1rem;
}

/* Tools Section (Bento Grid) */
.tools {
    padding: var(--space-xl) 0;
    overflow: hidden;
    position: relative;
}

.tools .container {
    position: relative;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.bento-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.5;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.bento-content {
    z-index: 2;
}

.bento-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.bento-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 90%;
}

.bento-visual {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
}

.visual-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition-standard);
    opacity: 0.7;
    filter: grayscale(20%);
}

.bento-visual.icons-row {
    gap: 1.5rem;
}

.bento-visual.icons-row img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: var(--transition-standard);
    opacity: 0.7;
}

/* Hover Effects */
.bento-card:hover .visual-icon,
.bento-card:hover .bento-visual.icons-row img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Featured Card (Design) */
.bento-card.featured {
    background: rgba(255, 255, 255, 0.01);
    min-height: 350px;
}

.bento-card.featured .visual-icon.large {
    width: 140px;
    height: 140px;
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.15;
    transform: rotate(-15deg);
    transition: all 0.5s ease;
    filter: none;
}


.bento-card.featured:hover .visual-icon.large {
    opacity: 0.3;
    transform: rotate(0deg) scale(1.1);
    right: 20px;
    bottom: 20px;
}

/* GitHub Icon Specific Style */
.visual-icon[alt="GitHub"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}


.bento-card:hover .visual-icon[alt="GitHub"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

/* Backend Icon (Generic Development) Specific Style */
.visual-icon[alt="Backend Development"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.bento-card:hover .visual-icon[alt="Backend Development"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

/* React Icon Specific Style */
.visual-icon[alt="React"],
.bento-visual.icons-row img[alt="React"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.bento-card:hover .visual-icon[alt="React"],
.bento-card:hover .bento-visual.icons-row img[alt="React"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

/* Next.js Icon Specific Style */
.visual-icon[alt="Next.js"],
.bento-visual.icons-row img[alt="Next.js"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.bento-card:hover .visual-icon[alt="Next.js"],
.bento-card:hover .bento-visual.icons-row img[alt="Next.js"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

/* TypeScript Icon Specific Style */
.visual-icon[alt="TypeScript"],
.bento-visual.icons-row img[alt="TypeScript"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    width: 38px !important;
    height: 38px !important;
    transform: translateY(-5px);
}

.bento-card:hover .visual-icon[alt="TypeScript"],
.bento-card:hover .bento-visual.icons-row img[alt="TypeScript"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 1;
    transform: translateY(-5px);
}

/* Cloud Icon Specific Style */
.visual-icon[alt="Cloud"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.bento-card:hover .visual-icon[alt="Cloud"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

/* Tech Stack Text */
.tech-stack-text {
    font-family: var(--font-main);
    color: var(--accent-color);
    opacity: 0.9;
    margin-top: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tech-stack-text small {
    font-size: 0.85rem;
}

/* Responsive Layout */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.featured {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
    }

    .bento-card.featured .bento-content {
        max-width: 60%;
    }

    .bento-card.featured h3 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }

    /* 
       Grid Layout:
       Row 1: [ Design (Span 2) ] [ Frontend (Span 1) ]
       Row 2: [ Backend ] [ Version ] [ Hosting ]
       
       OR
       
       Row 1: [ Design (Span 3) ]
       Row 2: [ Front ] [ Back ] [ Git ]
       Row 3: [ Hosting - centered? ]
       
       Let's stick to the 2-row layout from the first conceptualization:
    */

    .bento-card:nth-child(1) {
        grid-column: span 2;
        /* Design */
        grid-row: span 2;
        /* Make it tall? No, let's keep it wide */
        grid-row: 1;
    }

    .bento-card:nth-child(2) {
        grid-column: 3;
        /* Frontend */
        grid-row: 1;
    }

    .bento-card:nth-child(3) {
        grid-column: 1;
        /* Backend - Row 2, Col 1 */
        grid-row: 2;
    }

    .bento-card:nth-child(4) {
        grid-column: 2;
        /* Git - Row 2, Col 2 */
        grid-row: 2;
    }

    .bento-card:nth-child(5) {
        grid-column: 3;
        /* Hosting - Row 2, Col 3 */
        grid-row: 2;
    }

    /* Refine featured card in this layout */
    .bento-card.featured {
        min-height: auto;
        /* Let it fill the grid row */
        height: 100%;
        align-items: flex-start;
        /* Align content top */
        padding: 3rem;
    }

    .bento-card.featured .bento-content {
        max-width: 70%;
    }

    .bento-card.featured .visual-icon.large {
        width: 250px;
        height: 250px;
        right: -30px;
        bottom: -50px;
    }
}


.workflow-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
}

.workflow-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.6;
}

/* Media queries para o workflow */
@media (max-width: 992px) {
    /* Removida a transformação da linha */
    /* .workflow-container::before { ... } removido */

    .workflow-step,
    .workflow-step:nth-child(even) {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ajuste nas setas conectoras para layout vertical */
    .workflow-step:not(:last-child)::after {
        top: auto;
        bottom: -2.5rem;
        transform: translate(-50%, 0) rotate(90deg);
    }

    .workflow-card {
        width: 100%;
    }

    .workflow-steps {
        gap: 5rem;
        /* Reduzido para compactar no mobile */
    }

    .workflow-icons {
        justify-content: center;
        /* Centralizar ícones no mobile */
        padding-left: 0;
        /* Remover o padding left */
    }

    /* Ajuste no tamanho dos ícones em telas menores */
    .workflow-icon {
        width: 56px;
        height: 56px;
    }

    .workflow-icon img {
        max-width: 42px;
        max-height: 42px;
    }

    .service-icon {
        height: 70px;
    }

    .service-icon img {
        width: 50px;
        height: 50px;
    }

    .workflow-card p {
        font-size: 0.95rem;
        /* Texto mais compacto no mobile */
    }
}

@media (max-width: 576px) {
    .workflow-steps {
        gap: 4rem;
        /* Ainda mais compacto para telas muito pequenas */
    }

    .workflow-card {
        padding: 1.3rem;
        /* Padding reduzido */
    }

    .workflow-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
}

/* About Section Styles */
.about-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.focus-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.focus-list {
    list-style: none;
    margin-left: 0.5rem;
}

.focus-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    opacity: 0.9;
    color: var(--text-color);
}

.focus-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}





@media (max-width: 768px) {


    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    p {
        line-height: 1.6;
        /* Linha um pouco mais compacta em mobile */
    }

    /* Centralizar o título "Sobre nós" em dispositivos móveis */
    .about .section-title {
        text-align: center;
        margin-bottom: 2.5rem;
        /* Aumentar espaçamento entre o título e o texto */
    }

    .about .section-title::after {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
        /* Aumentar espaçamento da linha decorativa */
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-image img {
        width: 250px;
        height: 250px;
    }

    .portfolio-grid {
        gap: 1.5rem;
    }

    .portfolio-item {
        margin-bottom: 0.5rem;
    }

    .portfolio-info {
        padding: 1.2rem;
    }

    .portfolio-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .portfolio-info p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .about-text p,
    .workflow-card p,
    .portfolio-info p,
    .info-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Aumentar ainda mais o espaçamento em telas muito pequenas */
    .about .section-title {
        margin-bottom: 3rem;
    }

    .about .section-title::after {
        margin-bottom: 2rem;
    }
}

/* Contact Section Redesign */
.contact-glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 3.5rem;
    max-width: 900px;
    margin: 4rem auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.contact-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.contact-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.contact-text-col {
    flex: 1;
}

.contact-text-col h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: radial-gradient(circle at top left, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text-col p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 400px;
}

.contact-action-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.whatsapp-cta-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(30, 112, 240, 0.3);
    white-space: nowrap;
}

.whatsapp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(30, 112, 240, 0.5);
    background-color: var(--accent-color);
}

.whatsapp-cta-btn svg {
    width: 24px;
    height: 24px;
}

.contact-social-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 0.5rem;
    /* Align slightly */
}

.social-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-icon-box:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive for Contact Section */
@media (max-width: 768px) {
    .contact-glass-card {
        padding: 2.5rem 1.5rem;
        margin-top: 2rem;
    }

    .contact-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .contact-text-col h3 {
        font-size: 1.8rem;
    }

    .contact-text-col p {
        font-size: 1rem;
    }

    .contact-action-col {
        width: 100%;
    }

    .whatsapp-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        /* Permitir quebra de linha */
        justify-content: center;
        gap: 1rem 1.5rem;
        /* Gap vertical e horizontal */
    }

    .particle-cube-container {
        width: 300px;
        height: 300px;
    }

    section {
        padding: 4rem 0;
        /* Espaçamento vertical reduzido */
    }

    /* Melhorias para o menu mobile */
    .mobile-nav ul {
        gap: 1.7rem;
        /* Gap menor entre itens do menu para caber mais conteúdo */
    }

    .mobile-nav ul li a {
        font-size: 1.6rem;
        /* Fonte menor para o menu */
        padding: 0.5rem 1.5rem;
        /* Área de toque maior */
        border-radius: var(--border-radius-md);
        /* Bordas arredondadas para indicar área de toque */
        background-color: rgba(255, 250, 250, 0.03);
        /* Fundo sutil para indicar o botão */
        width: 80%;
        /* Largura controlada */
        margin: 0 auto;
        /* Centralizar horizontalmente */
    }

    .mobile-nav ul li a:hover {
        background-color: rgba(30, 112, 240, 0.1);
        /* Fundo azul sutil ao passar o mouse */
    }

    /* Ajuste geral do texto para melhor legibilidade */
    .about-text p,
    .workflow-card p,
    .portfolio-info p,
    .info-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .contact-image {
        min-height: 250px;
        /* Altura ainda menor */
    }

    .contact-info {
        padding: 1.5rem;
        /* Padding ainda menor */
        gap: 2rem;
        /* Gap menor entre itens */
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        /* Botão um pouco menor */
        font-size: 0.95rem;
        /* Texto menor */
    }

    .whatsapp-btn svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* Footer */
.footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(var(--text-color), 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo a {
    display: flex;
    align-items: center;
    transition: var(--transition-standard);
}

.footer-logo img {
    height: 32px;
    width: auto;
    transition: var(--transition-standard);
}

.footer-logo a:hover img {
    filter: drop-shadow(0 0 12px var(--glow-color));
    transform: scale(1.05);
}

.footer-nav ul {
    display: flex;
    gap: 1.5rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(var(--text-color), 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Profile Card Styles */
.about-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.profile-card {
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    font-family: 'Inter', sans-serif;
    border: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.profile-banner {
    height: 150px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 1.25rem;
    margin-top: -3.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid rgba(25, 25, 25, 0.8);
    background: rgba(25, 25, 25, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-follow-btn {
    background: white;
    color: black;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: transform 0.2s, background-color 0.2s;
    transform: translateY(15px);
}

.profile-follow-btn:hover {
    background: #f0f0f0;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    text-shadow: none;
    transform: translateY(15px);
}

.profile-info {
    padding: 0 1.25rem 1.5rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.1rem;
}

.profile-name-row h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: white;
    margin: 0;
    letter-spacing: -0.01em;
}

.verified-icon {
    width: 18px;
    height: 18px;
}

.profile-handle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.profile-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: #ccc;
    font-weight: 300;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 400;
}

.profile-link svg {
    opacity: 0.7;
}

.profile-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.profile-link a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(30, 112, 240, 0.4);
}

/* Media Queries adjustment for profile card */
@media (max-width: 992px) {
    .about-profile {
        margin-top: 2rem;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .particle-cube-container {
        margin-top: 3rem;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        gap: 1.5rem;
        /* Gap menor para melhor visualização */
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .particle-cube-container {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
        line-height: 1.5;
        /* Melhorar espaçamento de linha */
        margin-bottom: 2rem;
        /* Espaço maior antes dos botões */
    }

    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Gap menor */
    }

    .service-card {
        padding: 1.8rem;
        /* Padding menor */
    }

    .service-card h3 {
        font-size: 1.4rem;
        /* Título menor */
        margin-bottom: 0.8rem;
        /* Margem menor */
    }

    .service-card p {
        font-size: 0.95rem;
        /* Texto menor */
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        /* Permitir quebra de linha */
        justify-content: center;
        gap: 1rem 1.5rem;
        /* Gap vertical e horizontal */
    }

    .particle-cube-container {
        width: 300px;
        height: 300px;
    }

    section {
        padding: 4rem 0;
        /* Espaçamento vertical reduzido */
    }

    /* Melhorias para o menu mobile */
    .mobile-nav ul {
        gap: 1.7rem;
        /* Gap menor entre itens do menu para caber mais conteúdo */
    }

    .mobile-nav ul li a {
        font-size: 1.6rem;
        /* Fonte menor para o menu */
        padding: 0.5rem 1.5rem;
        /* Área de toque maior */
        border-radius: var(--border-radius-md);
        /* Bordas arredondadas para indicar área de toque */
        background-color: rgba(255, 255, 255, 0.03);
        /* Fundo sutil para indicar o botão */
        width: 80%;
        /* Largura controlada */
        margin: 0 auto;
        /* Centralizar horizontalmente */
    }

    .mobile-nav ul li a:hover {
        background-color: rgba(30, 112, 240, 0.1);
        /* Fundo azul sutil ao passar o mouse */
    }

    /* Ajuste geral do texto para melhor legibilidade */
    .about-text p,
    .workflow-card p,
    .portfolio-info p,
    .info-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
        /* Aumento do padding lateral */
    }

    section {
        padding: 3rem 0;
        /* Redução adicional do espaçamento vertical */
    }

    .hero {
        padding: 7rem 0 3.5rem;
        /* Ajuste do espaçamento */
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        /* Espaço menor após o título */
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        /* Botão um pouco menor */
    }

    .section-title {
        font-size: 1.9rem;
        /* Título menor */
        margin-bottom: 0.5rem;
        /* Margem menor */
    }

    .section-subtitle {
        font-size: 1rem;
        /* Subtítulo menor */
        width: 100%;
        /* Usar toda a largura disponível */
        margin-bottom: 2rem;
        /* Margem menor */
    }

    .section-title::after {
        width: 50px;
        /* Linha decorativa menor */
        margin: 0.8rem auto 0;
        /* Margem menor */
    }

    .particle-cube-container {
        width: 250px;
        height: 250px;
        margin-top: 2rem;
        /* Menos espaço acima */
    }

    /* Ajustes adicionais para telas muito pequenas */
    .mobile-nav ul li a {
        font-size: 1.4rem;
        /* Fonte ainda menor */
        width: 90%;
        /* Largura maior para área de toque */
        padding: 0.5rem 1rem;
        /* Padding reduzido */
    }

    .mobile-menu-btn {
        width: 28px;
        /* Botão hamburger um pouco menor */
        height: 20px;
    }

    /* Centralizar verticalmente o logo */
    .logo {
        display: flex;
        align-items: center;
    }

    /* Fazer o botão hamburger mais sutil */
    .mobile-menu-btn span {
        height: 1.5px;
        /* Linhas mais finas */
    }

    /* Melhorar espaçamento e legibilidade */
    .portfolio-img {
        height: 200px;
        /* Imagens do portfólio menores */
    }

    .footer-bottom p {
        font-size: 0.8rem;
        /* Texto menor no rodapé */
    }
}

/* Cubo 3D */
.particle-cube-container {
    width: 350px;
    height: 350px;
    margin-left: 2rem;
    position: relative;
}

/* Estilos para media queries */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .particle-cube-container {
        margin-top: 3rem;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .particle-cube-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .particle-cube-container {
        width: 250px;
        height: 250px;
    }
}



.services .container {
    position: relative;
    z-index: 2;
}

/* =========================================
   NEW PROFILE CARD STYLES (Refractive Design)
   ========================================= */

.about-portfolio-card {
    width: 100%;
    max-width: 500px;
    background-color: #050505;
    /* Deep black/dark grey */
    border-radius: 4px;
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
    /* Default sans */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    margin-left: auto;
    /* Align to right in grid if space permits */
}


/* Header Area */
.new-profile-header {
    background: #0a2532;
    /* Fallback color */
    position: relative;
    /* Remove fixed height to allow image to dictate height */
    height: auto;
    padding: 0;
    /* Remove padding as image is content */
    overflow: hidden;
    line-height: 0;
    /* Remove potential gap below image */
}

.new-profile-banner-bg {
    position: relative;
    /* Changed from absolute */
    width: 100%;
    height: auto;
    /* Allow aspect ratio scaling */
    object-fit: contain;
    /* Ensure full image is seen */
    z-index: 1;
    opacity: 0.8;
    /* Slight overlay to ensure text readability if needed */
    display: block;
}

/* Removed header text styles as text is in the image */

/* Profile Image */
.new-profile-pic-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    /* Overlap header */
    margin-left: 1.5rem;
    z-index: 10;
    border-radius: 4px;
    padding: 5px;
    /* Creates the spacing effect */
    background-color: #050505;
    /* Matches body bg */
}

.new-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* Body Content */
.new-profile-body {
    padding: 0.25rem 1.5rem 1.25rem;
    background-color: #050505;
    position: relative;
    z-index: 5;
}

.profile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
    gap: 1rem;
}

.name-block {
    margin-top: 0.25rem;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-profile-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.verified-badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.new-profile-handle {
    color: #6e767d;
    font-size: 0.95rem;
    margin-top: 0.1rem;
    font-weight: 400;
}

/* Connect Button */
.connect-btn {
    background-color: #fff;
    color: #000;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    /* Adjusted padding */
    border-radius: 4px;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.25rem;
    /* Align lightly with name */
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.connect-btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.new-profile-desc {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.new-profile-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 0.9rem;
    /* Consistency */
}

.link-icon {
    color: #1d9bf0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.new-profile-footer a {
    color: #1d9bf0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: text-decoration 0.2s;
    word-break: break-all;
    /* Prevent overflow */
}

.new-profile-footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .about-portfolio-card {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
        /* Slightly smaller radius on mobile */
    }

    .new-profile-header {
        height: auto;
        min-height: 100px;
        /* Allow growth */
        padding: 0;
    }


    .new-profile-pic-container {
        width: 80px;
        /* Smaller avatar */
        height: 80px;
        margin-top: -40px;
        margin-left: 1rem;
    }

    .new-profile-body {
        padding: 0.25rem 1.25rem 1rem;
    }

    .new-profile-name {
        font-size: 1.2rem;
    }

    .connect-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .profile-top-row {
        align-items: center;
        /* Better alignment */
    }
}

/* Language Modal */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.language-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.language-content {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.language-modal.hidden .language-content {
    transform: translateY(20px);
}

.language-header {
    margin-bottom: 2.5rem;
}

.language-header img {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 180px;
    height: auto;
}

.language-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 400;
}

.language-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lang-btn .lang-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
    display: block;
}

.lang-btn .lang-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

@media (min-width: 600px) {
    .language-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }

    .lang-btn {
        flex: 1;
        padding: 2.5rem 1.5rem;
    }
}