/* static/css/public_style.css */

/* --- General Public Site Styles --- */
.public-main {
    padding-top: 70px; /* Adjust for fixed navbar height */
}

.section-title {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* --- Color Variables from App --- */
:root {
    --google-yellow: #F4B400;
    --google-green: #0F9D58;
}

.gyellow { color: var(--google-yellow) }
.ggreen { color: var(--google-green) }


/* --- Navigation Bar --- */
.public-navbar {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-navbar .nav-link {
    color: #fff;
    font-weight: 300;
    transition: color 0.2s;
    margin: 0 0.5rem;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--google-yellow);
}

.public-navbar .btn-warning {
    font-weight: bold;
}

/* --- Background Video --- */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -99;
}


/* --- Hero & Page Header Sections --- */
.hero-section, .page-header-section {
    min-height: 80vh;
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}
.page-header-section { min-height: 40vh; }


.hero-headline {
    font-weight: 200;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-subheadline {
    max-width: 600px;
    margin: 1rem auto 0;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* --- How It Works Section --- */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(244, 180, 0, 0.1);
    border: 1px solid var(--google-yellow);
}

.icon-circle .fa-solid {
    color: var(--google-yellow);
}

/* --- Value Proposition Section --- */
.value-props-section {
    background-color: rgba(0,0,0,0.3);
}

.feature-row {
    margin-bottom: 6rem;
}
.feature-row:last-child {
    margin-bottom: 0;
}

.feature-text .eyebrow-text {
    font-weight: bold;
    color: var(--google-yellow);
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-text .feature-title {
    font-weight: 200;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* --- Features Page: Accordion --- */
.accordion-item {
    background-color: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: .375rem !important; /* Override bootstrap */
}
.accordion-header {
    border-radius: .375rem;
}
.accordion-button {
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    font-weight: 300;
    font-size: 1.5rem;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(244, 180, 0, 0.2);
    color: var(--google-yellow);
    box-shadow: none;
    font-weight: 400;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(244, 180, 0, 0.5);
}
.accordion-body {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* --- Pricing Page: Cards --- */
.pricing-card {
    background-color: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: .375rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card .card-header {
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.5rem;
}
.pricing-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pricing-card .card-title {
    text-align: center;
    font-weight: 300;
}
.pricing-card ul {
    flex-grow: 1;
}
.pricing-card ul li {
    padding: 0.5rem 0;
    font-weight: 300;
}

/* --- Contact Page: Form --- */
.contact-form-wrapper {
    background-color: rgba(33, 37, 41, 0.7);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: .375rem;
}
.form-control, .form-select {
    background-color: rgba(0,0,0,0.3) !important;
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.form-control:focus {
    border-color: var(--google-yellow);
    box-shadow: 0 0 0 0.25rem rgba(244, 180, 0, 0.25);
}

/* --- Final CTA Section --- */
.final-cta-section {
    background-color: rgba(244, 180, 0, 0.1);
    border-top: 1px solid rgba(244, 180, 0, 0.3);
    border-bottom: 1px solid rgba(244, 180, 0, 0.3);
}

.final-cta-section h2 {
    font-weight: 200;
}

/* --- Footer --- */
.public-footer {
    padding: 2rem 0;
    background-color: rgba(0,0,0,0.5);
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item {
    background-color: rgb(0,0,0,0.4);
}

.fade-image-container {
  position: relative;
  /* width: 300px;
  height: 300px; */
  overflow: hidden; /* Ensures the mask effect is contained */
}


.fade-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Define the four gradients for each side */
  mask-image: 
    /* Top fade */
    linear-gradient(to top, black calc(100% - 2em), transparent 100%),
    /* Bottom fade (original direction) */
    linear-gradient(to bottom, black calc(100% - 2em), transparent 100%),
    /* Left fade */
    linear-gradient(to left, black calc(100% - 2em), transparent 100%),
    /* Right fade */
    linear-gradient(to right, black calc(100% - 2em), transparent 100%);
  
  /* Combine the masks so only the overlapping opaque areas (the center) are visible */
  mask-composite: intersect; 
  
  /* Webkit prefixes for browser compatibility */
  -webkit-mask-image: 
    linear-gradient(to top, black calc(100% - 2em), transparent 100%),
    linear-gradient(to bottom, black calc(100% - 2em), transparent 100%),
    linear-gradient(to left, black calc(100% - 2em), transparent 100%),
    linear-gradient(to right, black calc(100% - 2em), transparent 100%);
  -webkit-mask-composite: intersect;
}

.animate-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}