/* =========================================
   BRAND COLORS — LOCKED
========================================= */
:root {
    --ink: #050810;
    /* deep ocean night */
    --sea: #00bcd4;
    /* turquoise */
    --sea-deep: #0077b6;
    /* deep Atlantic */
    --sunset: #ff9551;
    /* orange sunset */
    --sun-gold: #ffcf6b;
    /* golden hour */
    --card: rgba(0, 0, 0, 0.75);
    --text: #ffffff;
    --soft: #d4d4d4;
}

/* =========================================
   BASE
========================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #13213a 0, var(--ink) 55%);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.logo,
.btn-hero {
    font-family: 'Fjalla One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   STICKY HEADER
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(5, 8, 16, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

/* LEFT SOCIALS */
.header-left {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.header-left a {
    color: var(--soft);
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
}

.header-left a:hover {
    color: var(--sea);
}

/* CENTER NAV */
.main-nav {
    display: flex;
    flex: 3;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.nav-group-left,
.nav-group-right {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--soft);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--sea);
}

/* LOGO */
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
}

/* SOCIAL ICONS (HEADER) */
.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: inline-block;
}

/* FOOTER LOGO SIZE */
.footer-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
}

/* RIGHT CTA */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.btn-header-cta {
    font-family: 'Fjalla One';
    background: linear-gradient(135deg, var(--sea), var(--sea-deep));
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    box-shadow:
        0 0 20px rgba(0, 188, 212, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* =========================================
   HERO — TRINDADE
========================================= */
.hero-trindade {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/trindade-hero-bg.jpg') center/cover no-repeat;
}

.hero-trindade-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 8, 16, 0.4) 0%, var(--ink) 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-card {
    max-width: 800px;
    text-align: center;
    animation: floatUp 1s ease-out forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--sea) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.hero-text {
    color: var(--soft);
    font-size: 1.1rem;
    margin: 0 auto 1.5rem;
    max-width: 600px;
}

.hero-text.small {
    font-size: .95rem;
}

/* HERO BUTTONS */
.hero-cta-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* Classic Button */
.btn-hero-primary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sea);
    transform: translateY(-2px);
}

/* TRINDADEGPT GLOW BUTTON */
.btn-hero-trindadegpt {
    background: linear-gradient(135deg,
            var(--sun-gold),
            var(--sunset),
            #ff5722);
    color: #050810;
    border: none;
    box-shadow: 0 0 20px rgba(255, 149, 81, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.4);
    animation: pulseHop 3s infinite;
}

.btn-hero-trindadegpt:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 30px rgba(255, 149, 81, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Scroll Button */
.hero-scroll {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #eaeaea;
    padding: 0.7rem 2.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.hero-scroll:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   INSTAGRAM GRID
========================================= */
.section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.instagram-card {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 16px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--soft);
}

/* =========================================
   TRINDADEGPT HERO (SECOND SECTION)
========================================= */
.tgpt-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.tgpt-hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.tgpt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.72));
}

.tgpt-hero-content {
    position: relative;
    z-index: 10;
    max-width: 960px;
    padding: 4rem 1.5rem;
}

/* Eyebrow Pill */
.tgpt-eyebrow-pill {
    display: inline-flex;
    background: #000;
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.tgpt-eyebrow-pill-inner {
    color: #fff;
    letter-spacing: 0.15em;
    font-size: .8rem;
}

/* Button */
.tgpt-hero-button {
    display: inline-flex;
    flex-direction: column;
    background: #fff;
    padding: 1rem 3rem;
    border-radius: 999px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    transition: .2s;
}

.tgpt-hero-button:hover {
    transform: translateY(-2px);
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    padding: 2rem 1.5rem;
    background: #020305;
    color: var(--soft);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseHop {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(255, 149, 81, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: translateY(-4px);
        box-shadow: 0 0 35px rgba(255, 149, 81, 0.7),
            inset 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .site-header {
        flex-direction: column;
        height: auto;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* =====================================================
   TRINDADEGPT – FLOATING PANEL (UI REFRESH - BLUE/TEAL ONLY)
   ===================================================== */
#tgpt-panel {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(360px, 92vw);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.96);
    border-radius: 26px;
    /* Softer/Rounder */
    border: 1px solid rgba(0, 188, 212, 0.25);
    /* Cyan border */
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.65),
        0 0 20px rgba(0, 188, 212, 0.15);
    /* Soft cyan glow */
    backdrop-filter: blur(16px);
    z-index: 1200;
    overflow: hidden;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* mobile: a little wider and higher */
@media (max-width: 768px) {
    #tgpt-panel {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 5rem;
        /* Space above bottom nav/back button */
        width: auto;
        max-height: 60vh;
        border-radius: 22px;
    }
}

#tgpt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid rgba(0, 188, 212, 0.15);
    background: linear-gradient(135deg,
            rgba(0, 188, 212, 0.08),
            rgba(0, 119, 182, 0.08));
    /* Blue/Teal gradient only */
}

#tgpt-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#tgpt-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

#tgpt-title {
    font-family: 'Fjalla One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: #e0f7fa;
}

#tgpt-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 188, 212, 0.3);
    color: var(--sea);
    background: rgba(0, 188, 212, 0.05);
}

/* scrollable chat area */
#tgpt-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: radial-gradient(circle at center, rgba(0, 188, 212, 0.02), transparent 70%);
}

.tgpt-message {
    max-width: 90%;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.tgpt-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border-bottom-left-radius: 2px;
}

.tgpt-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--sea-deep), var(--sea));
    border: 1px solid rgba(0, 188, 212, 0.3);
    color: #fff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* input row */
#tgpt-input-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 4, 8, 0.9);
}

#tgpt-input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transition: border-color 0.2s;
}

#tgpt-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#tgpt-input:focus {
    outline: none;
    border-color: var(--sea);
    background: rgba(0, 188, 212, 0.05);
}

#tgpt-send {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sea), var(--sea-deep));
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

#tgpt-send:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(0, 188, 212, 0.6);
}

#tgpt-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 2px;
    /* optical center */
}

/* simple tiny scrollbar */
#tgpt-messages::-webkit-scrollbar {
    width: 5px;
}

#tgpt-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 188, 212, 0.2);
    border-radius: 999px;
}

/* =========================================
   ANTIGRAVITY UPGRADES (HI-TECH FLOW)
   ========================================= */

/* Sand/Energy Text Flow */
.sand-text-flow {
    background: linear-gradient(90deg, var(--sun-gold), var(--sunset), #fff, var(--sun-gold));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sandTextFlow 4s linear infinite;
    display: inline-block;
}

@keyframes sandTextFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Antigravity Float */
.antigravity-float {
    animation: antigravityFloat 6s ease-in-out infinite;
}

@keyframes antigravityFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Energy Background Flow */
.energy-bg-flow {
    background: linear-gradient(-45deg, #050810, #13213a, #0a1020, #000);
    background-size: 400% 400%;
    animation: bgEnergyFlow 15s ease infinite;
}

@keyframes bgEnergyFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Panel */
.glass-panel-tech {
    background: rgba(5, 8, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Inbox Visible State */
.inbox-panel.active {
    display: block;
    animation: floatUp 0.6s ease-out;
}

/* =========================================
   GLOBAL BACK TO HOME BUTTON
========================================= */
.back-home-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    text-decoration: none;
    color: var(--soft);
    font-family: "Fjalla One", system-ui, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 990;
    /* High but below modals/overlays */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    background: rgba(5, 8, 16, 0.95);
    border-color: var(--sea);
    color: var(--sea);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.back-home-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

/* Mobile Adjustments for Back Button */
@media (max-width: 600px) {
    .back-home-btn {
        bottom: 16px;
        left: 16px;
        padding: 10px;
        font-size: 0.75rem;
        background: rgba(5, 8, 16, 0.92);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .back-home-btn span {
        display: none;
        /* Icon only on mobile */
    }
}