/* Definições de Variáveis Modernas */
:root {
    --bg-dark: hsl(0, 0%, 100%);
    --bg-card: rgba(0, 255, 13, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --primary: #099410;
    --primary-glow: rgba(123, 241, 99, 0.15);
    --glow: rgba(123, 241, 99, 0.3);
    --glow-soft: rgba(123, 241, 99, 0.12);
    --accent: #00fe22;
    --button-bg: #343a44;
    --button-border: #00fe22;
    --text-main: #141414;
    --text-muted: #044e08;
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

/* Orbes de Fundo (Efeito Fluido) */
.glow-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: 220px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -100px;
}

/* Menu de Navegação Glassmorphic */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    background: rgb(255, 255, 255);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    height: 150px;
    width: auto;
    display: flex;
    padding: 10px;

}

.logo span {
    color: rgb(7, 59, 0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

/* Botões Modernos */
.btn-primary,
.btn-secondary {
    background: var(--button-bg);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--button-border);
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    background: #414852;
    box-shadow: 0 0 24px rgba(0, 254, 34, 0.18);
}

/* Secção Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.badge {
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 0 14px rgba(0, 254, 34, 0.12);
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 2px rgba(123, 241, 99, 0.2);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Cabeçalhos de Secção */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Cartões com Efeito Glassmorphism */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 25px;
}

.glass-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Galeria / Portfólio */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--button-border);
    box-shadow: 0 0 20px rgba(0, 254, 34, 0.15);
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--button-bg) 0%, #2a2f38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.gallery-item h3 {
    font-size: 18px;
    padding: 20px 20px 10px;
    margin: 0;
}

.gallery-item p {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 20px 20px;
    margin: 0;
}

/* Layout Duplo (Sobre) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-item h4 {
    font-size: 32px;
    color: var(--accent);
}

.stat-item p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Elemento Visual Interativo */
.about-visual {
    display: flex;
    justify-content: center;
}

.interactive-box {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
    animation: morphing 8s ease-in-out infinite;
}

.box-content {
    text-align: center;
    color: white;
}

.cpu-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 10px;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Formulário de Contacto */
.contact-container {
    max-width: 600px;
}

.contact-wrapper {
    padding: 50px;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.w-full {
    width: 100%;
}

/* Rodapé */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 30px 0;
    background: #07080c;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: white;
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .nav-links, header .btn-primary { display: none; }
    .hero-content h1 { font-size: 40px; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 80px 0; }
}