        :root {
            /* Cores extraídas da config do Tailwind */
            --amarelo: #f9c81c;
            --azul-escuro: #333665;
            --azul-claro: #2c4593;
            --bg-light: #F8FAFC; /* Slate 50 */
            --bg-dark: #333665;
            --surface-light: #FFFFFF;
            --surface-dark: #333665;
            
            --text-slate-900: #0f172a;
            --text-slate-800: #333665;
            --text-slate-600: #475569;
            --text-slate-500: #64748b;
            --text-slate-300: #cbd5e1;
            --text-slate-200: #e2e8f0;
            --text-white: #ffffff;

            /* Espaçamentos e Layout */
            --container-width: 1280px; /* max-w-7xl */
            --content-width: 1024px;   /* max-w-5xl */
            --nav-height: 80px;
            --radius: 0.5rem;
            
            /* Fontes */
            --font-main: "Titillium Web", sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-light);
            color: var(--text-slate-800);
            transition: background-color 0.3s ease, color 0.3s ease;
            line-height: 1.6;
        }

        .section-title {
          scroll-margin-top:calc(var(--nav-height) + +3rem); /* Adiciona um "espaço" acima do alvo */
        }


        /* Scrollbar Customizada */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #1e293b;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--amarelo); /* Mantido original do style inline */
            border-radius: 4px;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        img { display: block; max-width: 100%; }


      
        /* =========================================
           COMPONENTS: NAVBAR
           ========================================= */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--nav-height);
            z-index: 50;
            background-color: var(--azul-claro);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #1f2937;
        }

        .nav-container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 1rem; /* px-4 */
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;


        }
        @media (max-width: 768px) {
            .nav-container {
                justify-content: center;
            }
        }
        .brand {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            width: 200px;
        }

        .nav-links {
            display: none; /* Mobile first hidden */
        }

        .nav-links a {
            color: #d1d5db; /* gray-300 */
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius);
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover, .nav-links a.active {
            color: var(--amarelo);
        }

        @media (min-width: 768px) {
            .nav-links {
                display: flex;
                gap: 1rem;
                margin-left: 2.5rem;
            }
        }

        /* =========================================
           MAIN LAYOUT
           ========================================= */
        .main-wrapper {
            padding-top: 8rem; /* pt-28 */
            padding-bottom: 4rem;
            max-width: var(--content-width);
            margin: 0 auto;
            padding-left: 1rem;
            padding-right: 1rem;
        }

        /* =========================================
           HERO SECTION
           ========================================= */
        .hero-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .hero-image-wrapper {
            display: flex;
            justify-content: center;
        }

        .hero-cover {
            position: relative;
            width: 100%;
            max-width: 400px;
            border-radius: 0.5rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
            transition: transform 0.5s;
            border: 2px solid #e2e8f0;
            object-fit: cover;
        }


        .hero-cover:hover {
            transform: scale(1.02);
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero-title {
            font-size: 2.25rem; /* text-4xl */
            font-weight: 700;
            color: var(--amarelo);
            margin-bottom: 1.5rem;
            line-height: 1.1;
            scroll-margin-top: calc(var(--nav-height) + +3rem);
        }

        .hero-title span {
            color: var(--text-slate-800);
        }

        .hero-text {
            color: var(--text-slate-600);
        }
        
        .hero-text p {
            margin-bottom: 1rem;
        }
        
        .hero-text .highlight {
            font-style: italic;
            color: var(--text-slate-500);
        }


        @media (min-width: 768px) {
            .hero-grid {
                grid-template-columns: repeat(12, 1fr);
            }
            .hero-image-wrapper {
                grid-column: span 5;
                justify-content: flex-start;
            }
            .hero-content {
                grid-column: span 7;
            }
            .hero-title {
                font-size: 3rem; /* text-5xl */
            }
        }

        /* Divider */
        .divider {
            width: 100%;
            height: 1px;
            background: linear-gradient(to right, transparent, #d1d5db, transparent);
            margin: 3rem 0;
            border: none;
        }

        /* =========================================
           FICHA TÉCNICA
           ========================================= */
        .section-title {
            font-size: 1.875rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-left: 1rem;
            border-left: 4px solid var(--amarelo);
            color: var(--text-slate-800);
        }

        .tech-card {
            background-color: var(--surface-light);
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            border: 1px solid #f3f4f6;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 4rem;
        }
       

        .tech-list {
            font-size: 0.875rem;
            display: flex;
            flex-direction: column;
            position: relative;
            padding: 1rem 2rem;


        }
        .tech-list li {
            margin-bottom: 0.5rem;
        }
        .tech-list strong {
            color: var(--text-slate-900);
        }

        @media (min-width: 768px) {
            .tech-list { font-size: 1rem; }
        }
        @media (max-width: 768px) {
            .tech-card {
                display: flex;
                flex-direction: column;
                gap: 0;
            }
            .tech-list{
                padding: 0;
            }
            .divider{
                margin: 0;
            }
        } 
        /* =========================================
           ABOUT / CONTEXT SECTION
           ========================================= */
        .split-section {
                display: flex; flex-direction: column; gap: 3rem; margin-bottom: 5rem;
                align-items: center;
            }
            @media (min-width: 1024px) { .split-section { flex-direction: row; } }

            .split-section h2 {
                font-size: 1.875rem; 
                font-weight: 700;
                color: var(--text-slate-800); 
                margin-bottom: 1.5rem; 
                position: relative; 
                border-left: 4px solid var(--amarelo);
                margin-bottom: 1.5rem;
                padding-left: 1rem;
            }

        .split-text { flex: 1; color: var(--text-slate-600); }
        .split-image { flex: 1; width: 100%; }
       

         .img-card {
        position: relative;
        border-radius: 1.5rem;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border: 4px solid #fff;
        }

        /* =========================================
           GALLERY GRID
           ========================================= */

/* Grid da Galeria */
.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content:space-around;
}


.gallery-container::-webkit-scrollbar-track {
    background: #e0e0e0; 
    border-radius: 4px;
    margin: 0 10px; /* Margem para não colar nas bordas */
}

.gallery-item {
    flex: 0 0 25vh; /* '0 0' impede encolher/crescer, 300px é a largura base */
    height: 25vh; /* Altura fixa para manter alinhamento */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Necessário para contextos de z-index */
}


.gallery-item:hover {
    transform: translateY(-5px); /* Efeito de elevação */
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o quadrado sem distorcer */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom sutil ao passar o mouse */
}

/* Lightbox (Modal) */
.lightbox {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fundo escuro imersivo */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}

/* Botões de Navegação e Fechar */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    color: #bbb;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
    user-select: none;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Animação de entrada */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .nav-btn {
        font-size: 2rem;
        padding: 0 10px;
    }
    .close-btn {
        top: 10px;
        right: 20px;
    }
    .gallery-container{
        flex-wrap: wrap;
    }
    .gallery-item {
        flex: 0 0 44vw;
        height: 44vw;
    }
}
        
        /* =========================================
           FOOTER
           ========================================= */
        .site-footer {
            background-color: var(--amarelo);
            color: var(--text-slate-900);
            padding-top: 4rem;
            padding-bottom: 2rem;
            border-top: 1px solid var(--amarelo);
        }


        .footer-content {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 1rem;
        }

        .footer-top {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            align-items: center;
            margin-bottom: 3rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            width: 240px;
        }

        .social-links {
            width: max-content;
	  max-width: 100%;
	  display: flex;
	  gap: 10px;
	  justify-content: center;
	  align-items: center;
	  margin: 20px auto 60px;
        }

        .social-icon {
		color: var(--azul-escuro);
		border: solid 1px var(--azul-escuro);
		background: transparent;
		width: 50px;
		height: 50px;
		border-radius: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 1.5rem;
		transition: .3s;
		line-height: 1rem;
  
		&:hover {
		  color: #fff;
		  background: var(--azul-escuro);
		}
	  }
        .dark .social-icon { background-color: rgba(255,255,255,0.1); }

        .footer-contact {
            text-align: center;
            color: var(--azul-escuro);
        }

        @media (min-width: 768px) {
            .footer-top {
                flex-direction: row;
                justify-content: space-between;
            }
            .footer-contact { text-align: right; }
        }

        .footer-middle {
            display: flex;
            justify-content: center;
            padding: 2rem 0;
            border-top: 1px solid rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }
        .dark .footer-middle { border-color: rgba(255,255,255,0.1); }

        .stamp {
            background-color: #000;
            color: #fff;
            font-weight: 700;
            padding: 0.5rem 1rem;
            font-size: 1.25rem;
            border-radius: 0.25rem;
            transform: rotate(-2deg);
            text-align: center;
            line-height: 1.2;
        }
        .stamp span {
            color: var(--amarelo);
            font-size: 0.875rem;
            letter-spacing: 0.1em;
            display: block;
        }

        .footer-bottom {
            text-align: center;
            font-size: 0.75rem;
            opacity: 0.8;
            color: var(--azul-escuro);
            font-weight: 600;
        }

        @media (max-width: 768px) {

            .social-links{
        margin: 0 auto;
    }
}
        /* =========================================
           REDES SOCIAIS
        V
           ========================================= */

    