/* css/style.css */

:root {
    --brand-primary: #EA69A5; /* PortugalGayMap Pinkish-Purple */
    --brand-secondary: #C7508A; /* PortugalGayMap Darker Pink/Purple */
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light-gray: #f8f9fa;
    --bg-medium-gray: #e9ecef;
    --bg-dark: #343a40;
}

html {
    scroll-padding-top: 70px; /* Adjust value based on your fixed navbar height */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Override Bootstrap primary color */
.text-primary {
    color: var(--brand-primary) !important;
}

/* --- Navbar --- */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--brand-primary);
}
.nav-link {
    font-weight: 600;
    color: #555;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-primary);
}
.navbar .btn-download {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.navbar .btn-download:hover {
    background-color: #B14679; /* Darker shade of --brand-secondary */
    border-color: #B14679;
}

/* --- Hero Section --- */
#hero {
    padding: 8rem 0 6rem; /* Increased top padding due to fixed navbar */
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%); /* TODO: Adjust gradient colors */
    color: var(--text-light);
    text-align: center;
    overflow: hidden; /* Prevent horizontal scroll from animations */
}
#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
#hero p.lead {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
#hero .app-mockup {
    max-width: 300px; /* Adjust size */
    margin: 2rem auto;

}
.app-store-badge {
    display: inline-block;
    height: 55px; /* Adjust size */
    transition: transform 0.2s ease-in-out;
}
.app-store-badge:hover {
    transform: scale(1.05);
}

/* --- General Section Styling --- */
section {
    padding: 5rem 0;
}
section.bg-light {
    background-color: var(--bg-light-gray);
}
section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
section .section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--brand-secondary);
    margin: 0.75rem auto 0;
}

/* --- Features Section --- */
#features .feature-item {
    margin-bottom: 2rem;
}
#features .feature-icon {
    font-size: 2.8rem;
    color: var(--brand-secondary);
    margin-bottom: 1rem;
    display: inline-block;
}
#features h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
#features p {
    color: #555;
    font-size: 0.95rem;
}

/* --- How It Works / Benefits Section --- */
#how-it-works img {
    max-width: 100%;
    max-height: 550px !important;
   
}
#how-it-works h4 {
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 0.5rem; /* Added margin */
}
#how-it-works p {
     color: #555; /* Added text color */
}

/* Styling for app screenshots to give a framed/device-like appearance */
.app-screenshot-framed {
    border: 8px solid #1c1c1e; /* iPhone-like bezel color */
    border-radius: 38px; /* More pronounced rounded corners for iPhone Pro Max style */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.15); /* Enhanced shadow for depth */
    display: block; /* Ensure it behaves as a block */
    position: relative; /* Required for the ::before pseudo-element (notch) */
    background-color: #1c1c1e; /* Fallback for image transparency, matches border */
    /* overflow: hidden; /* Ensures content respects border-radius - already default for img with border-radius */
}

/* iPhone-style "Dynamic Island" notch */
.app-screenshot-framed::before {
    content: '';
    position: absolute;
    top: 1px; /* Positioned just inside the top border, on the 'screen' area */
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Width of the Dynamic Island */
    height: 10px; /* Height of the Dynamic Island */
    background-color: #1c1c1e; /* Match bezel color */
    border-radius: 5px; /* Pill-shape for the island */
    z-index: 1; /* Ensure it's above the image content */
}

#app-showcase .step-number { /* Updated ID, removed #how-it-works */
    background-color: var(--brand-primary);
    color: white;
    font-weight: bold;
    width: 30px; /* Fixed width */
    height: 30px; /* Fixed height */
    line-height: 30px; /* Center number vertically */
    text-align: center; /* Center number horizontally */
    flex-shrink: 0; /* Prevent shrinking */
}

/* --- Safety Section --- */
#safety {
     background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-medium-gray) 100%);
}
#safety .safety-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    display: inline-block; /* Center icon */
}
#safety h4 {
     font-size: 1.2rem;
     font-weight: 600;
     margin-bottom: 0.5rem;
}
#safety p {
    font-size: 0.95rem;
    color: #555;
}
#safety .btn-outline-primary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
#safety .btn-outline-primary:hover {
    background-color: var(--brand-primary);
    color: white;
}

/* --- Community & Contribution Section --- */
#community-contribution .community-icon {
    font-size: 2.8rem;
    color: var(--brand-secondary);
    margin-bottom: 1rem;
    display: inline-block;
}
#community-contribution h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
#community-contribution p {
    color: #555;
    font-size: 0.95rem;
}


/* --- Final CTA Section --- */
#final-cta {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%); /* Match Hero */
    color: var(--text-light);
    text-align: center;
}
 #final-cta h2 {
     color: var(--text-light);
 }
 #final-cta h2::after {
     background-color: var(--text-light);
 }
#final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: #adb5bd;
    padding: 2.5rem 0 1.5rem;
    font-size: 0.9rem;
}
footer a {
    color: #f8f9fa;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}
footer a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}
footer .social-icons a {
    font-size: 1.3rem;
    margin: 0 0.75rem;
    color: #adb5bd;
    transition: color 0.2s ease;
}
 footer .social-icons a:hover {
    color: var(--text-light);
 }

/* --- Animation --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Optimize animation */
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 56px; /* Adjust for potentially smaller navbar */
    }
    #hero {
        padding-top: 6rem;
    }
    #hero h1 {
        font-size: 2.8rem;
    }
    #hero p.lead {
        font-size: 1.1rem;
    }
    section h2 {
        font-size: 2.2rem;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    .navbar .btn-download {
        margin-top: 0.5rem;
        display: inline-block;
    }
}
@media (max-width: 767.98px) {
     #hero h1 {
        font-size: 2.4rem;
    }
     #hero p.lead {
        font-size: 1rem;
    }
     section h2 {
        font-size: 2rem;
    }
    #hero .app-mockup {
        max-width: 250px;
    }
    .app-store-badge {
        height: 50px;
    }
    #features .feature-item {
        margin-bottom: 2.5rem; /* Increase spacing on mobile */
    }
}