/* -------------------------------------------------------------
   GPLX 2026 - CSS Styling System
   Author: GN Labs / Antigravity
   Aesthetics: Premium Dark Mode, Vibrant Gradients, Glassmorphism
------------------------------------------------------------- */

/* --- Design Tokens --- */
:root {
    --bg-main: #0a0e17;
    --bg-card: rgba(25, 33, 50, 0.6);
    --bg-card-hover: rgba(30, 41, 64, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.5);
    
    --primary-gradient: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    --primary-color: #10B981;
    --secondary-color: #3B82F6;
    --accent-color: #F97316;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0f172a;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --- Reusable Components (Buttons) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero Section (Facebook Style) --- */
.hero-section {
    position: relative;
    width: 100%;
    padding-bottom: 3rem;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0) 60%, rgba(10, 14, 23, 1) 100%);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 380px;
    max-height: 650px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.75);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.3) 100%);
}

.hero-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.profile-layout {
    display: flex;
    align-items: flex-end;
    margin-top: -85px; /* Pull profile layout up to overlap banner */
    gap: 2rem;
}

.avatar-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--primary-gradient);
    padding: 5px; /* Gradient Ring Effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.avatar-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-main);
    transition: var(--transition-smooth);
}

.avatar-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.avatar-hover-overlay i {
    width: 32px;
    height: 32px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-img {
    transform: scale(1.05);
}

.avatar-wrapper:hover .avatar-hover-overlay {
    opacity: 1;
}

.avatar-wrapper:hover .avatar-hover-overlay i {
    transform: translateY(0);
}

.profile-info-group {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1rem;
    gap: 1.5rem;
}

.profile-text {
    flex-grow: 1;
}

.app-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 650px;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* --- Features Section --- */
.features-section {
    padding: 6rem 0;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.paragraph-lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1rem;
    color: #e2e8f0;
}

.bullet-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.features-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.card-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.feature-card:nth-child(1) .card-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
}

.feature-card:nth-child(3) .card-icon-wrapper {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
    transition: var(--transition-fast);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-arrow {
    margin-left: auto;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

/* Feature Card Hover states */
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover .card-content h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--secondary-color);
}

/* --- Screenshots Section --- */
.screenshots-section {
    padding: 6rem 0;
    background: #06090f;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 3rem auto 0 auto;
    padding: 0 70px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 2rem;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 1.333rem); /* 3 items per screen on desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0.5;
    transform: scale(0.9);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.03);
}

/* Modern phone frame mockup */
.phone-mockup {
    width: 260px;
    height: 530px;
    border: 10px solid #202636;
    border-radius: 40px;
    background: #000;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    cursor: zoom-in;
    transition: var(--transition-smooth);
}

.phone-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(16, 185, 129, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: #080d1a;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition-fast);
}

.carousel-slide.active .slide-caption {
    color: #ffffff;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25, 33, 50, 0.9);
    border: 1px solid var(--border-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 20;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    width: 24px;
    border-radius: 10px;
    background: var(--primary-color);
}

/* --- CTA (Call to Action) Section --- */
.cta-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(185deg, #0a0e17 0%, #05070c 100%);
    overflow: hidden;
    text-align: center;
}

.cta-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cta-bg-elements .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-bg-elements .circle.c1 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.08);
    top: -10%;
    left: 10%;
}

.cta-bg-elements .circle.c2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.08);
    bottom: -20%;
    right: 5%;
}

.cta-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.download-badges {
    display: flex;
    justify-content: center;
}

.google-play-badge {
    display: inline-block;
    transition: var(--transition-smooth);
    width: 240px;
    height: auto;
}

.google-play-badge:hover {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 15px 30px rgba(16, 185, 129, 0.3));
}

/* --- Footer --- */
.footer {
    background: #04060a;
    padding: 5rem 0 3rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 380px;
}

.footer-grid h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-group a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-links-group a i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--secondary-color);
}

.footer-links-group a:hover i {
    color: var(--secondary-color);
}

.developer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
}

/* --- Lightbox Modal (Zoom screenshot) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(4, 6, 10, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    opacity: 0;
}

.lightbox.open .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Animation Classes & Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CSS Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up-delay-1 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.animate-slide-up-delay-2 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem); /* 2 items on tablets */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .banner-container {
        height: 45vh;
        min-height: 280px;
    }
    
    .profile-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -60px;
        gap: 1rem;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-info-group {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
        gap: 1.5rem;
    }
    
    .app-title {
        font-size: 2.1rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .profile-actions {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .carousel-wrapper {
        padding: 0 45px;
    }
    
    .carousel-slide {
        flex: 0 0 260px; /* Center one item and show partials on sides */
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control.prev {
        left: 2px;
    }
    
    .carousel-control.next {
        right: 2px;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .google-play-badge {
        width: 200px;
    }
}
