
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', Arial, sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 50%, #0a0a0a 100%);
            color: #ffffff;
            overflow-x: hidden;
            line-height: 1.65;
        }

        /* Ecrã de carregamento - demorei um bocado a acertar isto */
        .tela-loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.9s ease;
        }

        .texto-loading {
            font-size: 2.1rem;
            font-weight: 300;
            letter-spacing: 0.35em;
            opacity: 0;
            animation: pulsoCarregamento 2.7s ease-in-out;
            text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
            margin-bottom: 2.3rem;
        }

        .barra-progresso-loading {
            width: 320px;
            height: 2px;
            background: rgba(255, 255, 255, 0.12);
            border-radius: 1px;
            overflow: hidden;
        }

        .progresso-loading {
            height: 100%;
            background: linear-gradient(90deg, #ffffff, #999999);
            width: 0%;
            border-radius: 1px;
            animation: progressoCarregamento 2.2s ease forwards;
        }

        @keyframes pulsoCarregamento {
            0%, 100% { 
                opacity: 0; 
                transform: scale(0.92);
            }
            50% { 
                opacity: 1; 
                transform: scale(1.03);
            }
        }

        @keyframes progressoCarregamento {
            to { width: 100%; }
        }

        @keyframes fadeCorpo {
            from { opacity: 0.85; }
            to { opacity: 1; }
        }

        /* Navegação - tive problemas com o mobile menu inicialmente */
        .navbar-rodrigo {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.2rem 0;
            background: rgba(10, 10, 10, 0.88);
            backdrop-filter: blur(12px);
            z-index: 1000;
            transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .navbar-rodrigo.com-scroll {
            background: rgba(10, 10, 10, 0.94);
            padding: 0.6rem 0;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
        }

        .container-nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-rodrigo {
            font-size: 1.6rem;
            font-weight: 600;
            background: linear-gradient(45deg, #ffffff, #cccccc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: all 0.35s ease;
            text-decoration: none;
        }

        .logo-rodrigo:hover {
            transform: scale(1.08);
            filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
        }

        .links-nav {
            display: flex;
            list-style: none;
            gap: 2.2rem;
            margin: 0;
        }

        .links-nav a {
            color: #ffffff;
            text-decoration: none;
            font-weight: 300;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            padding: 0.6rem 0;
        }

        .links-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(45deg, #ffffff, #cccccc);
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .links-nav a:hover {
            color: #f5f5f5;
            transform: translateY(-1.5px);
        }

        .links-nav a:hover::after {
            width: 100%;
        }

        .botao-menu-mobile {
            display: none;
            cursor: pointer;
            font-size: 1.6rem;
            color: white;
            z-index: 1001;
        }

        /* Secção principal - hero */
        .secao-hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .fundo-hero {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.18;
            animation: flutuarSuave 28s ease-in-out infinite;
        }

        @keyframes flutuarSuave {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-12px) rotate(0.3deg); }
        }

        .conteudo-hero {
            text-align: center;
            z-index: 1;
            max-width: 850px;
            padding: 0 2rem;
        }

        .titulo-principal {
            font-size: clamp(2.2rem, 5vw, 4.2rem);
            font-weight: 100;
            margin-bottom: 1.2rem;
            opacity: 0;
            transform: translateY(45px);
            animation: deslizarSuave 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
            text-shadow: 0 3px 15px rgba(255, 255, 255, 0.08);
        }

        .subtitulo-hero {
            font-size: clamp(1.1rem, 2.5vw, 1.6rem);
            color: #b8b8b8;
            margin-bottom: 2.2rem;
            opacity: 0;
            transform: translateY(45px);
            animation: deslizarSuave 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
        }

        .descricao-hero {
            font-size: 1.15rem;
            color: #d0d0d0;
            margin-bottom: 3.2rem;
            opacity: 0;
            transform: translateY(45px);
            animation: deslizarSuave 1.3s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
        }

        @keyframes deslizarSuave {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .botao-cta {
            display: inline-block;
            padding: 1.3rem 2.8rem;
            background: transparent;
            border: 2px solid #ffffff;
            color: #ffffff;
            text-decoration: none;
            font-weight: 400;
            letter-spacing: 0.18em;
            transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateY(45px);
            animation: deslizarSuave 1.3s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
            position: relative;
            overflow: hidden;
            border-radius: 3px;
        }

        .botao-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #ffffff, #eeeeee);
            transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: -1;
        }

        .botao-cta:hover {
            color: #1a1a1a;
            transform: translateY(-2.5px);
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.18);
            border-color: #eeeeee;
            text-decoration: none;
        }

        .botao-cta:hover::before {
            left: 0;
        }

        /* Estilos das secções */
        .secao-conteudo {
            padding: 5.5rem 0;
            opacity: 0;
            transform: translateY(55px);
            transition: all 1.1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .secao-conteudo.visivel {
            opacity: 1;
            transform: translateY(0);
        }

        .titulo-secao {
            font-size: 2.6rem;
            font-weight: 100;
            text-align: center;
            margin-bottom: 3.5rem;
            position: relative;
            text-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
        }

        .titulo-secao::after {
            content: '';
            position: absolute;
            bottom: -18px;
            left: 50%;
            transform: translateX(-50%);
            width: 85px;
            height: 2px;
            background: linear-gradient(45deg, #ffffff, #bbbbbb);
            animation: expandirLinha 0.9s ease-out 0.6s forwards;
            transform-origin: center;
            transform: translateX(-50%) scaleX(0);
        }

        @keyframes expandirLinha {
            to {
                transform: translateX(-50%) scaleX(1);
            }
        }

        /* Secção sobre mim */
        .grid-sobre {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3.5rem;
            align-items: center;
        }

        .texto-sobre {
            font-size: 1.12rem;
            color: #d0d0d0;
            line-height: 1.85;
        }

        .texto-sobre p {
            margin-bottom: 1.9rem;
            transition: all 0.35s ease;
        }

        .texto-sobre p:hover {
            color: #ffffff;
            transform: translateX(4px);
        }

        .imagem-sobre {
            text-align: center;
            position: relative;
        }

        .placeholder-foto {
            width: 290px;
            height: 290px;
            border-radius: 50%;
            background: linear-gradient(45deg, #333333, #555555, #333333);
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4.8rem;
            color: #888888;
            position: relative;
            overflow: hidden;
            transition: all 0.55s ease;
            border: 3px solid rgba(255, 255, 255, 0.12);
        }

        .placeholder-foto:hover {
            transform: scale(1.04);
            border-color: rgba(255, 255, 255, 0.22);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
        }

        .placeholder-foto::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.08), transparent);
            animation: brilho 4.5s ease-in-out infinite;
        }

       .placeholder-foto img.foto-perfil {
            width: 100%;
            height: 100%;
            object-fit: cover; /* mantém a proporção e preenche */
            border-radius: 50%; /* segue o formato circular */
            position: relative;
            z-index: 1; /* fica acima do fundo mas abaixo do brilho */
        }

        @keyframes brilho {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        /* Grid de competências - isto deu-me alguns problemas no alinhamento */
        .grid-skills {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
            gap: 2.2rem;
            margin-top: 2.5rem;
            align-items: start;
        }

        .caixa-skill {
            background: rgba(255, 255, 255, 0.085);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 14px;
            padding: 2.8rem;
            transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(8px);
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .caixa-skill::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #ffffff, #888888);
            transform: scaleX(0);
            transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
        }

        .caixa-skill:hover::before {
            transform: scaleX(1);
        }

        .caixa-skill:hover {
            transform: translateY(-6px) scale(1.018);
            background: rgba(255, 255, 255, 0.125);
            box-shadow: 0 18px 35px rgba(0, 0, 0, 0.42);
            border-color: rgba(255, 255, 255, 0.28);
        }

        .caixa-skill h3 {
            font-size: 1.35rem;
            margin-bottom: 1.6rem;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 0.9rem;
        }

        .caixa-skill h3 i {
            color: #aaaaaa;
            transition: color 0.35s ease;
        }

        .caixa-skill:hover h3 i {
            color: #ffffff;
        }

        .lista-skills {
            list-style: none;
            flex-grow: 1;
            margin: 0;
            padding: 0;
        }

        .lista-skills li {
            color: #bbbbbb;
            margin-bottom: 0.85rem;
            padding-left: 1.3rem;
            position: relative;
            transition: all 0.35s ease;
            font-size: 0.98rem;
        }

        .lista-skills li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: #888888;
            transition: all 0.35s ease;
        }

        .caixa-skill:hover .lista-skills li {
            color: #dddddd;
        }

        .caixa-skill:hover .lista-skills li::before {
            color: #ffffff;
            transform: translateX(2px);
        }

        /* Grid de projetos */
        .grid-projetos {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
            gap: 2.2rem;
            margin-top: 2.5rem;
        }

        .card-projeto {
            background: rgba(255, 255, 255, 0.085);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 18px;
            padding: 2.8rem;
            transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            backdrop-filter: blur(8px);
            display: flex;
            flex-direction: column;
        }

        .card-projeto::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.075), transparent);
            transform: translateX(-100%);
            transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card-projeto:hover::before {
            transform: translateX(100%);
        }

        .card-projeto:hover {
            transform: translateY(-8px) scale(1.018);
            background: rgba(255, 255, 255, 0.125);
            box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42);
            border-color: rgba(255, 255, 255, 0.28);
        }

        .numero-projeto {
            font-size: 2.6rem;
            font-weight: 100;
            color: #333333;
            position: absolute;
            top: 1.8rem;
            right: 1.8rem;
            transition: all 0.35s ease;
            z-index: 1;
        }

        .card-projeto:hover .numero-projeto {
            color: #555555;
            transform: scale(1.08);
        }

        .card-projeto h3 {
            font-size: 1.45rem;
            margin-bottom: 1.3rem;
            color: #ffffff;
            font-weight: 500;
            transition: color 0.35s ease;
        }

        .card-projeto:hover h3 {
            color: #f5f5f5;
        }

        .card-projeto p {
            color: #bbbbbb;
            line-height: 1.75;
            margin-bottom: 1.9rem;
            transition: color 0.35s ease;
            flex-grow: 1;
        }

        .card-projeto:hover p {
            color: #dddddd;
        }

        .tecnologias-projeto {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            margin-top: auto;
        }

        .tag-tecnologia {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 22px;
            padding: 0.45rem 1.1rem;
            font-size: 0.88rem;
            color: #cccccc;
            transition: all 0.35s ease;
            backdrop-filter: blur(4px);
        }

        .card-projeto:hover .tag-tecnologia {
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(255, 255, 255, 0.32);
            color: #ffffff;
            transform: translateY(-1.5px);
        }

        /* Secção contacto */
        .conteudo-contacto {
            text-align: center;
        }

        .info-contacto {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 2.2rem;
            margin-top: 3.5rem;
        }

        .item-contacto {
            background: rgba(255, 255, 255, 0.085);
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 14px;
            padding: 2.8rem;
            transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            color: inherit;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(8px);
            display: block;
        }

        .item-contacto::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.12);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .item-contacto:hover::before {
            width: 125%;
            height: 125%;
        }

        .item-contacto:hover {
            transform: translateY(-6px) scale(1.04);
            border-color: rgba(255, 255, 255, 0.32);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
            text-decoration: none;
            color: inherit;
        }

        .item-contacto i {
            font-size: 2.3rem;
            margin-bottom: 1.3rem;
            color: #bbbbbb;
            transition: all 0.35s ease;
            z-index: 2;
            position: relative;
        }

        .item-contacto:hover i {
            color: #ffffff;
            transform: scale(1.08);
        }

        .item-contacto h3 {
            margin-bottom: 0.6rem;
            color: #ffffff;
            font-size: 1.25rem;
            z-index: 2;
            position: relative;
        }

        .item-contacto p {
            color: #aaaaaa;
            margin: 0;
            z-index: 2;
            position: relative;
        }

        /* Rodapé */
        .rodape-site {
            background: rgba(10, 10, 10, 0.92);
            text-align: center;
            padding: 3.5rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            margin-top: 3.5rem;
            backdrop-filter: blur(8px);
        }

        .conteudo-rodape {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .conteudo-rodape p {
            margin-bottom: 0.6rem;
        }

        /* Partículas flutuantes */
        .container-particulas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
            opacity: 0.65;
        }

        .particula {
            position: absolute;
            width: 1px;
            height: 1px;
            background: rgba(255, 255, 255, 0.18);
            border-radius: 50%;
            animation: flutuar-particula 14s linear infinite;
        }

        @keyframes flutuar-particula {
            0% {
                transform: translateY(0) rotate(0deg) scale(0);
                opacity: 0;
            }
            12% {
                opacity: 1;
                transform: scale(1);
            }
            88% {
                opacity: 0.75;
            }
            100% {
                transform: translateY(-125vh) rotate(200deg) scale(0);
                opacity: 0;
            }
        }

        /* Cursor personalizado - só funciona no desktop */
        .cursor-custom {
            position: fixed;
            width: 22px;
            height: 22px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9998;
            transition: all 0.12s ease;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        /* Media queries para responsividade */
        @media (max-width: 991px) {
            .botao-menu-mobile {
                display: block !important;
            }
            
            .links-nav {
                position: fixed;
                top: 75px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 75px);
                background: rgba(10, 10, 10, 0.96);
                backdrop-filter: blur(8px);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 3.5rem;
                transition: left 0.35s ease;
            }
            
            .links-nav.ativo-mobile {
                left: 0;
                display: flex !important;
            }
            
            .links-nav a {
                font-size: 1.6rem;
            }
        }

        @media (max-width: 768px) {
            .grid-sobre {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 2.5rem;
            }
            
            .grid-projetos {
                grid-template-columns: 1fr;
            }
            
            .grid-skills {
                grid-template-columns: 1fr;
            }
            
            .info-contacto {
                grid-template-columns: 1fr;
            }
            
            .secao-conteudo {
                padding: 3.5rem 0;
            }

            .titulo-principal {
                font-size: 2.8rem;
            }

            .subtitulo-hero {
                font-size: 1.3rem;
            }

            .placeholder-foto {
                width: 230px;
                height: 230px;
                font-size: 3.8rem;
            }

            .titulo-secao {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 576px) {
            .container-nav {
                padding: 0 1.2rem;
            }

            .conteudo-hero {
                padding: 0 1.2rem;
            }

            .secao-conteudo {
                padding: 2.5rem 0;
            }

            .caixa-skill,
            .card-projeto,
            .item-contacto {
                padding: 2.2rem;
            }

            .botao-cta {
                padding: 1.1rem 2.2rem;
                font-size: 0.92rem;
            }

            

        }
