/* 
   Apple-like Dark Theme & Design System 
*/
:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-blue: #2997ff;
    --glass-bg: rgba(22, 22, 23, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(28, 28, 30, 0.6);
    --glow-color: rgba(41, 151, 255, 0.15);

    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --nav-height: 60px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Ambient Glow Background */
.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(41, 151, 255, 0.08), transparent 60%);
    animation: pulseGlow 15s infinite alternate ease-in-out;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.nav-tabs {
    display: flex;
    gap: 20px;
    position: relative;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
}

/* Simulated underline indicator - simplified for performance */
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Main Content & Tabs */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

main {
    padding-top: 0;
    /* Nav covers top, but scroll-padding handles offset */
    min-height: 100vh;
}

.tab-section {
    display: block;
    /* Always visible */
    opacity: 1;
    transform: none;
    min-height: 60vh;
    /* Allow shorter sections if content is brief, but usually they are long */
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Ensure sections have spacing */
#home.tab-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 0;
    /* Hero needs to be full bleed */
    margin-bottom: 0;
}

/* Ensure hero background is fixed or absolute */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Adjust other sections to have proper spacing from sticky nav */
#pacote,
#pagamento,
#sobre {
    scroll-margin-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
    max-width: 600px;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #ddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.price-container {
    margin-bottom: 25px;
}

.price-value {
    display: block;
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-note {
    font-size: 13px;
    color: var(--accent-blue);
    margin-top: 5px;
}

.feature-highlight {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
}

.btn-secondary:hover {
    text-decoration: underline;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.mini-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-feature:hover {
    transform: translateY(-5px);
}

.mini-feature .icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.mini-feature .label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Vertical CTA Group for Profile */
.cta-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.margin-top-small {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .cta-group-vertical {
        align-items: flex-start;
        /* Align left on desktop if profile is left-aligned */
    }
}

.tooltip {
    position: absolute;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2000;
    transform: translate(-50%, -10px);
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.tooltip.visible {
    opacity: 1;
}

/* Tab B: Pacote */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-primary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.mt-large {
    margin-top: 80px;
}

.timeline-container {
    text-align: center;
}

.timeline-title {
    font-size: 24px;
    margin-bottom: 40px;
}

.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-blue);
}

.step-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.step-line {
    width: 100px;
    height: 1px;
    background: var(--glass-border);
    margin-top: -25px;
    /* visually align with circles */
}

/* Hide lines on mobile wrap */
@media (max-width: 600px) {
    .step-line {
        display: none;
    }

    .timeline {
        flex-direction: column;
        gap: 30px;
    }
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* Tab C: Pagamento */
.payment-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.payment-card {
    text-align: center;
    min-width: 250px;
    border: 1px solid var(--accent-blue);
    /* Subtle highlight */
    background: rgba(41, 151, 255, 0.05);
}

.card-header {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.payment-card .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.payment-card .details {
    font-size: 16px;
    color: var(--text-primary);
}

.payment-card .note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.friendly-note {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Tab D: Sobre */
.profile-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-content {
    flex: 1;
}

.profile-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.profile-content .subtitle {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.profile-content .bio {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 40px;
}

.brand-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.brand-logo-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.margin-top {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .profile-image-container {
        justify-content: center;
    }

    .profile-content .bio {
        margin: 0 auto 30px auto;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

/* --- Portfolio Carousel --- */
#portfolio {
    padding-top: 40px;
    padding-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    /* Space between photos */
    padding: 20px 20px 40px 20px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    width: 100%;
    max-width: 800px;
    /* Larger max-width for vertical view */
    height: 80vh;
    /* Takes up most of the screen height per photo */
    min-height: 500px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Floating Hover Effect */
.carousel-item:hover {
    transform: scale(1.02);
    /* Slight zoom instead of just Y translate */
}

/* Linear Luminous Animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.glow-linear {
    position: relative;
    /* We use a pseudo-element for the border glow to keep image clean */
}

.glow-linear::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(var(--angle), transparent 20%, rgba(255, 255, 255, 0.8), transparent 80%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: rotateGlow 6s linear infinite;
}

/* Fallback for browsers without @property support (simple border) */
@supports not (background: paint(something)) {
    .glow-linear {
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    }
}

@keyframes rotateGlow {
    to {
        --angle: 360deg;
    }
}

.carousel-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: -10px;
}

/* Adjust full width on mobile for better edge-to-edge feel */
.full-width-mobile {
    @media (max-width: 768px) {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}