/* Custom CSS for Flag & Torch LLC Website */

:root {
    --primary-color: #6b7c47;     /* Military olive green from logo shield */
    --secondary-color: #4a5233;   /* Darker green for accents */
    --accent-color: #f4e4c1;      /* Cream color from torch and text */
    --dark-color: #1e1e1e;        /* Logo background color */
    --light-color: #f8f6f2;       /* Light cream background */
    --text-muted: #8a8a8a;        /* Muted text color */
    --torch-flame: #f4e4c1;       /* Torch flame color */
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--dark-color);
    color: var(--accent-color);
}

/* Google Material Icons alignment for hybrid UI */
.material-icons {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

/* Support guide search */
.support-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-search .form-control {
    flex: 1;
}

.support-search-icon {
    color: var(--dark-color);
    opacity: 0.8;
}

/* Support guide groups (collapsible category headers) */
#supportGuidesContainer .support-guides-group > .accordion-header .accordion-button {
    font-weight: 800;
}

/* Support guide per-article share link (auto-injected via JS) */
#supportGuidesContainer .support-guide-item > .accordion-header {
    position: relative;
}

#supportGuidesContainer .support-guide-item > .accordion-header .accordion-button {
    padding-right: 3.25rem; /* room for the share icon on the right */
}

#supportGuidesContainer .support-guide-share {
    position: absolute;
    right: 0.35rem;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    color: rgba(30, 30, 30, 0.65);
    text-decoration: none;
    border-radius: 0.5rem;
}

#supportGuidesContainer .support-guide-share:hover,
#supportGuidesContainer .support-guide-share:focus {
    color: rgba(30, 30, 30, 0.9);
    background: rgba(30, 30, 30, 0.06);
}

html[data-theme="dark"] #supportGuidesContainer .support-guide-share {
    color: rgba(248, 250, 252, 0.75);
}

html[data-theme="dark"] #supportGuidesContainer .support-guide-share:hover,
html[data-theme="dark"] #supportGuidesContainer .support-guide-share:focus {
    color: rgba(248, 250, 252, 0.95);
    background: rgba(248, 250, 252, 0.08);
}

/* Optional dark theme */
html[data-theme="dark"] body {
    background-color: var(--dark-color);
    color: var(--accent-color);
}

/* Dark-mode section surfaces (adds visual separation) */
html[data-theme="dark"] section.surface-1 {
    background-color: #141417;
    color: var(--accent-color);
}

html[data-theme="dark"] section.surface-2 {
    background-color: #0f0f10;
    color: var(--accent-color);
}

/* Light mode: alternate surfaces using a subtle red gradient (similar vibe to footer) */
html[data-theme="light"] section.surface-2:not(.bg-light) {
    /* mid-tone red gradient (clearly red, not near-black, not near-white) */
    /* Match the app promo red: darker red on the left, brighter red on the right */
    background: linear-gradient(90deg, #9f1d1d 0%, #7f1d1d 45%, #5b1010 100%);
    color: var(--accent-color);
}

html[data-theme="light"] section.surface-2:not(.bg-light) h1,
html[data-theme="light"] section.surface-2:not(.bg-light) h2,
html[data-theme="light"] section.surface-2:not(.bg-light) h3,
html[data-theme="light"] section.surface-2:not(.bg-light) h4,
html[data-theme="light"] section.surface-2:not(.bg-light) h5,
html[data-theme="light"] section.surface-2:not(.bg-light) h6 {
    color: var(--accent-color);
    text-shadow: none;
}

/* In red-gradient surface sections, keep text light by default,
   but ensure headings inside white cards stay dark for readability. */
html[data-theme="light"] section.surface-2:not(.bg-light) .card h1,
html[data-theme="light"] section.surface-2:not(.bg-light) .card h2,
html[data-theme="light"] section.surface-2:not(.bg-light) .card h3,
html[data-theme="light"] section.surface-2:not(.bg-light) .card h4,
html[data-theme="light"] section.surface-2:not(.bg-light) .card h5,
html[data-theme="light"] section.surface-2:not(.bg-light) .card h6 {
    color: var(--dark-color) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: initial;
}

/* Partners intro subtitle should be readable on the red gradient */
#partners .partners-lead {
    color: rgba(248, 250, 252, 0.92) !important;
}

/* Fallback for any sections missing surface classes */
html[data-theme="dark"] section:not(.hero-section):not(.surface-1):not(.surface-2) {
    background-color: #0f0f10;
    color: var(--accent-color);
}

html[data-theme="dark"] section:not(.hero-section) .lead {
    color: rgba(248, 250, 252, 0.85) !important;
}

html[data-theme="dark"] section:not(.hero-section) .text-muted {
    color: rgba(248, 250, 252, 0.7) !important;
}

html[data-theme="dark"] section:not(.hero-section) h1,
html[data-theme="dark"] section:not(.hero-section) h2,
html[data-theme="dark"] section:not(.hero-section) h3,
html[data-theme="dark"] section:not(.hero-section) h4,
html[data-theme="dark"] section:not(.hero-section) h5,
html[data-theme="dark"] section:not(.hero-section) h6 {
    color: var(--accent-color) !important;
}

html[data-theme="dark"] .card {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .card-body {
    color: var(--accent-color);
}

html[data-theme="dark"] .accordion-item {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .accordion-button {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--accent-color);
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(220, 53, 69, 0.10);
    color: var(--accent-color);
}

html[data-theme="dark"] .accordion-body {
    background-color: rgba(255, 255, 255, 0.03);
    color: rgba(248, 250, 252, 0.88);
}

html[data-theme="dark"] .support-search-icon {
    color: rgba(248, 250, 252, 0.8);
}

html[data-theme="dark"] .support-search .form-control {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .support-search .form-control::placeholder {
    color: rgba(248, 250, 252, 0.6);
}

html[data-theme="dark"] .support-mini-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .support-mini-title {
    color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .bg-faq {
    background: linear-gradient(135deg, rgba(30,30,30,1) 0%, rgba(40,40,40,1) 100%);
}

html[data-theme="dark"] .bg-faq::before {
    background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.12) 0%, transparent 55%);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    --hero-badge-width: 220px; /* keep hero badge rows visually consistent (tighter, less empty space) */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Mobile/tablet: avoid awkward vertical centering under the fixed navbar */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        align-items: flex-start;
        padding-top: 5.25rem; /* navbar offset */
        padding-bottom: 3rem;
    }
}

/* Hero background is controlled by theme overrides (see mygoaliestats-theme.css). */

.hero-kicker {
    color: rgba(248, 250, 252, 0.92);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    color: rgba(248, 250, 252, 0.95);
    justify-content: center;
}

.hero-point {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

/* Hero CTA badges (match the visual language of the store badges) */
.hero-cta-badges {
    margin-top: 0.25rem;
    display: grid;
    grid-template-columns: repeat(2, var(--hero-badge-width));
    justify-content: center;
    justify-items: center;
    gap: 14px 18px;
}

.hero-section .cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(248, 250, 252, 0.22);
    color: rgba(248, 250, 252, 0.96);
    text-decoration: none;
    min-height: 56px;
    width: var(--hero-badge-width);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-section .cta-badge:hover,
.hero-section .cta-badge:focus {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.70);
    border-color: rgba(248, 250, 252, 0.40);
    color: rgba(248, 250, 252, 1);
}

.hero-section .cta-badge-icon {
    font-size: 28px;
    line-height: 1;
    opacity: 0.95;
}

.hero-section .cta-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left; /* keep text left-aligned even when hero column is centered on mobile */
}

.hero-section .cta-badge-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-section .cta-badge-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.hero-preview img {
    max-width: 420px;
    width: 100%;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* Hero app icon should be smaller than a screenshot-style preview */
.hero-preview img.hero-app-icon {
    max-width: 220px;
    box-shadow: none !important; /* prevent rectangular shadow in transparent corners */
    border-radius: 0 !important; /* icon already has rounded corners baked in */
    background: transparent !important;
}

/* Desktop: make the hero app icon ~50% larger */
@media (min-width: 992px) {
    .hero-preview img.hero-app-icon {
        max-width: 330px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(107, 124, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 82, 51, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(244, 228, 193, 0.02) 50%, transparent 70%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--primary-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.03;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.hero-image img {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.hero-image:hover img {
    /* Subtle, neutral hover lift (avoid oversized glow and harsh cutoffs) */
    transform: scale(1.03);
    filter: drop-shadow(0 16px 30px rgba(248, 250, 252, 0.18));
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: var(--dark-color) !important;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover::after {
    opacity: 1;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    color: var(--accent-color) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(107, 124, 71, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(107, 124, 71, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--accent-color);
}

.btn-light {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 228, 193, 0.3);
    background-color: var(--torch-flame);
    color: var(--dark-color);
}

.btn-outline-light {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 228, 193, 0.3);
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* Cards */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(107, 124, 71, 0.25) !important;
    border-color: var(--secondary-color);
}

.card:hover::before {
    transform: scaleX(1);
}

.support-panel {
    border-radius: 16px;
}

.support-mini-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(107, 124, 71, 0.18);
    border-radius: 12px;
    padding: 14px 14px;
}

.support-mini-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.partner-logo {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

.support-image img {
    max-height: 260px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.card-body {
    color: var(--dark-color);
    position: relative;
    z-index: 2;
}

.card-title {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-color);
}

/* Sections */
section {
    position: relative;
}

section:not(.hero-section) {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Ensure headings have proper contrast on light backgrounds */
section:not(.hero-section):not(.bg-light) h1,
section:not(.hero-section):not(.bg-light) h2,
section:not(.hero-section):not(.bg-light) h3,
section:not(.hero-section):not(.bg-light) h4,
section:not(.hero-section):not(.bg-light) h5,
section:not(.hero-section):not(.bg-light) h6 {
    color: var(--dark-color);
    text-shadow: none;
}

/* Section Dividers */
section:not(.hero-section):not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    color: var(--accent-color);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hero title: Roboto + plain white (no gradient text-fill) */
.hero-section h1 {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--accent-color) !important;
    background: none !important;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

/* Hero SVG title (gradient without CSS text clipping to avoid "bar" artifacts) */
.hero-title {
    text-shadow: none !important; /* keep the SVG text crisp */
}

.hero-title-svg {
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin: 0 auto; /* keep centered */
}

/* Hero SVG title: responsive alignment (left on desktop, centered on mobile) */
.hero-title-text-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .hero-title-svg {
        margin: 0 auto;
    }

    .hero-title-text-desktop {
        display: none;
    }

    .hero-title-text-mobile {
        display: block;
    }
}

/* Mobile: center-align hero copy so title matches centered badges */
@media (max-width: 991.98px) {
    #home .col-lg-7 {
        text-align: center;
    }
}

h2 {
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lead {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(244, 228, 193, 0.9);
}

.bg-light {
    background-color: var(--dark-color) !important;
    color: var(--accent-color) !important;
}

.bg-light .card {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--accent-color) !important;
}

.bg-light .lead {
    color: var(--accent-color) !important;
}

.bg-light .text-muted {
    color: rgba(244, 228, 193, 0.8) !important;
}

/* Fix: in .bg-light sections, headings inside light cards should be dark (prevents white-on-white in Support/Screenshots cards) */
.bg-light .card h1,
.bg-light .card h2,
.bg-light .card h3,
.bg-light .card h4,
.bg-light .card h5,
.bg-light .card h6 {
    color: var(--dark-color) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: initial;
}

.bg-light .card .lead {
    color: var(--text-muted) !important;
}

.bg-light .card .text-muted {
    color: #666666 !important;
}

/* Light-mode contrast improvements scoped to Support + FAQ only (avoid whitening the whole site) */
html[data-theme="light"] #support .accordion-item {
    border-color: rgba(30, 30, 30, 0.18);
}

html[data-theme="light"] #support .accordion-button {
    border-bottom: 1px solid rgba(30, 30, 30, 0.10);
}

html[data-theme="light"] #support .btn-outline-primary {
    border-width: 2px;
}

/* Support buttons: make outline styles visible (global .btn removes borders) */
#support .btn-outline-primary {
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

#support .btn-outline-primary:hover,
#support .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--accent-color);
}

#support .btn-outline-secondary {
    border: 1px solid rgba(30, 30, 30, 0.25);
    background-color: transparent;
}

#support .btn-outline-secondary:hover,
#support .btn-outline-secondary:focus {
    background-color: rgba(30, 30, 30, 0.06);
    border-color: rgba(30, 30, 30, 0.35);
    color: var(--dark-color);
}

/* Support "Start here" deep links */
#support .support-deeplink {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(107, 124, 71, 0.25);
    padding-bottom: 1px;
}

#support .support-deeplink:hover,
#support .support-deeplink:focus {
    color: var(--secondary-color);
    border-bottom-color: rgba(74, 82, 51, 0.55);
    text-decoration: none;
}

html[data-theme="dark"] #support .support-deeplink {
    color: rgba(248, 250, 252, 0.92);
    border-bottom-color: rgba(244, 228, 193, 0.35);
}

html[data-theme="dark"] #support .support-deeplink:hover,
html[data-theme="dark"] #support .support-deeplink:focus {
    color: rgba(248, 250, 252, 1);
    border-bottom-color: rgba(244, 228, 193, 0.7);
}

html[data-theme="light"] .bg-faq .accordion-item {
    border: 1px solid rgba(220, 53, 69, 0.18);
}

/* Ensure text contrast on white backgrounds */
section:not(.bg-light) .lead {
    color: var(--text-muted);
}

section:not(.bg-light) .text-muted {
    color: #666666 !important;
}

/* Contact Section */
.contact-item {
    display: block;
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    color: inherit;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 124, 71, 0.05) 0%, rgba(74, 82, 51, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(107, 124, 71, 0.15);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item i {
    display: block;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
}

.contact-item:hover i {
    color: var(--primary-color) !important;
    transform: scale(1.2) rotateY(360deg);
    text-shadow: 0 0 20px rgba(107, 124, 71, 0.4);
}

.contact-item h5,
.contact-item p {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-item:hover h5 {
    color: var(--primary-color);
}

.contact-link {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-link {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(107, 124, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 82, 51, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer a {
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

footer a:not(.social-icon)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

footer a:not(.social-icon):hover::after {
    width: 100%;
}

footer .social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.9;
}

footer .social-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* App Showcase */
.app-showcase {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.app-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(107, 124, 71, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.app-showcase img {
    max-width: 100%;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.app-showcase img:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(107, 124, 71, 0.2);
}

/* App Image Enhancement */
.app-image {
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    margin: 2rem;
    position: relative;
    overflow: hidden;
}

.app-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.app-image i {
    color: var(--accent-color) !important;
    position: relative;
    z-index: 2;
}

/* Logo Container */
.logo-container {
    background-color: var(--dark-color);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* App Features List */
.features-list p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* App Actions */
.app-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Store Badges */
.hero-actions, .download-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero: 2x2 matrix of store badges (official PNGs + custom text/logo badges) */
.hero-store-grid {
    display: grid;
    grid-template-columns: repeat(2, var(--hero-badge-width));
    justify-content: center;
    justify-items: center;
    gap: 14px 18px;
}

@media (max-width: 520px) {
    .hero-store-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 520px) {
    .hero-cta-badges {
        grid-template-columns: 1fr;
    }
}

.hero-store-grid .store-badge,
.hero-store-grid .custom-store-badge {
    width: var(--hero-badge-width);
}

.hero-store-grid .store-badge {
    justify-content: center;
}

.hero-store-grid .store-badge img {
    height: auto;
    max-height: 60px; /* keep official badges consistent with custom badge height */
    object-fit: contain;
    max-width: 220px; /* keep official badges from feeling oversized */
}

.custom-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(248, 250, 252, 0.22);
    color: rgba(248, 250, 252, 0.98);
    text-decoration: none;
    min-height: 56px;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.custom-store-badge:hover,
.custom-store-badge:focus {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(248, 250, 252, 0.40);
    color: rgba(248, 250, 252, 1);
}

.custom-store-logo {
    font-size: 30px;
    line-height: 1;
}

.custom-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0; /* allow text to size within the fixed badge width */
    text-align: left; /* keep text left-aligned even when hero column is centered on mobile */
}

.custom-store-kicker {
    font-size: 0.70rem;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.custom-store-title {
    font-size: 1.55rem;
    font-weight: 600; /* match official badge feel (less bold) */
    line-height: 1.15;
    padding-bottom: 1px; /* prevent descenders (p/g/y) from feeling clipped */
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Per-store capitalization rules */
.custom-store-badge-apple .custom-store-kicker {
    text-transform: none;
}

.custom-store-badge-google .custom-store-kicker {
    text-transform: uppercase;
}

/* Google Play is slightly longer; keep it large but ensure it never overflows */
.custom-store-badge-google .custom-store-title {
    font-size: 1.48rem;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .hero-actions, .download-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .store-badge, .download-badges .store-badge {
        margin: 0.5rem 0;
    }
}

.store-badge {
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.store-badge img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    width: auto;
    max-height: 84px;
}

.store-badge:hover img {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.store-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.4s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.store-badge:hover::after {
    width: 80%;
    opacity: 1;
}

.app-actions a:not(.btn) {
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.app-actions a:not(.btn):hover {
    color: var(--secondary-color) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-light {
    color: var(--accent-color) !important;
}

.text-white {
    color: var(--accent-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 6rem 0 2rem 0; /* Add top padding to clear navbar */
        min-height: calc(100vh - 80px); /* Adjust min-height to account for navbar */
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 14px 30px;  /* Larger touch target for mobile */
        font-size: 1rem;
        min-height: 48px;    /* Ensure minimum touch target size */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .app-image {
        margin: 1rem 0;
        padding: 2rem;
    }
    
    /* Ensure navbar doesn't cover content on mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Improve touch targets for hero section buttons */
    .hero-actions {
        position: relative;
        z-index: 1;
    }
    
    .hero-actions .btn {
        touch-action: manipulation;  /* Improve touch responsiveness */
        min-width: 200px;            /* Ensure consistent button width */
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Staggered Animation Delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-accent {
    color: var(--accent-color) !important;
}

/* Text gradient - only use on dark backgrounds for contrast */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark background gradient text */
.bg-light .text-gradient,
.hero-section .text-gradient {
    background: linear-gradient(135deg, var(--accent-color), rgba(244, 228, 193, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Safe gradient for light backgrounds */
.text-gradient-safe {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rounded-custom {
    border-radius: 20px;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(107, 124, 71, 0.1);
}

.shadow-custom-hover:hover {
    box-shadow: 0 20px 50px rgba(107, 124, 71, 0.25);
}

/* Interactive Elements */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(107, 124, 71, 0.3);
}

.interactive-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 124, 71, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.interactive-card:hover::before {
    left: 100%;
}

/* Smooth Transitions for All Hover States */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screenshot Gallery */
.screenshot-gallery {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

.screenshot-gallery .d-flex {
    padding-left: 15px;
    padding-right: 15px;
}

.screenshot-img {
    height: 400px;
    width: auto;
    max-width: 200px;
    min-width: 180px;
    object-fit: cover;
    object-position: top;
    transition: all 0.3s ease;
    border: 2px solid rgba(107, 124, 71, 0.2);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.screenshot-img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Custom scrollbar for screenshot gallery */
.screenshot-gallery .overflow-auto::-webkit-scrollbar {
    height: 8px;
}

.screenshot-gallery .overflow-auto::-webkit-scrollbar-track {
    background: rgba(107, 124, 71, 0.1);
    border-radius: 4px;
}

.screenshot-gallery .overflow-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.screenshot-gallery .overflow-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Responsive adjustments for screenshots */
@media (max-width: 768px) {
    .screenshot-img {
        height: 350px;
        min-width: 160px;
        max-width: 180px;
    }
    
    .screenshot-gallery {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .screenshot-gallery .d-flex {
        padding-left: 10px;
        padding-right: 10px;
        gap: 1rem !important;
    }
}

/* Screenshot Modal/Lightbox */
#screenshotModal .modal-dialog {
    max-width: 90vw;
}

#screenshotModal #modalScreenshot {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* FAQ Section Background */
.bg-faq {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f2f0 100%);
    position: relative;
}

.bg-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(107, 124, 71, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.bg-faq h2,
.bg-faq h3,
.bg-faq .lead {
    color: var(--dark-color);
}

.bg-faq .text-muted {
    color: #6c757d !important;
}

.bg-faq .accordion-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(220, 53, 69, 0.1);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.bg-faq .accordion-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border: none;
}

.bg-faq .accordion-button:not(.collapsed) {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--dark-color);
    box-shadow: none;
    border-bottom: 2px solid rgba(220, 53, 69, 0.2);
}

.bg-faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

.bg-faq .accordion-button:hover {
    background-color: rgba(220, 53, 69, 0.05);
}

.bg-faq .accordion-body {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
} 