/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #fb923c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.logo-text:hover {
    background: linear-gradient(135deg, #fb923c 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #ea580c);
    transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.hidden {
    display: none !important;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 8rem 0;
    background: url('assets/heroimage.png?v=1') center center no-repeat;
    background-size: contain;
    background-position: center center;
    background-attachment: fixed;
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Desktop optimization for hero section - show full image */
@media (min-width: 1024px) {
    .hero-section {
        background-size: contain;
        background-position: center center;
        padding: 10rem 0;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-section {
        background-size: contain;
        background-position: center center;
        padding: 8rem 0;
    }
}

/* Mobile optimization for hero section - show full image */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-size: contain;
        background-position: center center;
        min-height: 100vh;
        margin: 0;
        padding: 6rem 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        background-size: contain;
        background-position: center center;
        min-height: 100vh;
        margin: 0;
        padding: 4rem 0;
    }
}





/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.4);
}

.btn-outline {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid #64748b;
}

.btn-outline:hover {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}



/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: rgba(30, 41, 59, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fb923c;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cbd5e1;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 48rem;
    margin: 0 auto;
}

/* Story Section */
.story-section {
    padding: 5rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.story-grid-reverse {
    margin-bottom: 5rem;
}

.story-image {
    position: relative;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: -60px;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.image-caption-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 400px;
}

.caption-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.caption-title {
    font-size: 0.875rem;
    color: #cbd5e1;
    opacity: 0.9;
}

.story-content {
    space-y: 1.5rem;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.story-icon {
    color: #fb923c;
}

.story-icon-green {
    color: #34d399;
}

.story-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.story-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

.badge-orange {
    background: rgba(251, 146, 60, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 146, 60, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.badge-purple {
    background: rgba(147, 51, 234, 0.2);
    color: #a78bfa;
    border-color: rgba(147, 51, 234, 0.3);
}

/* Quote Box */
.quote-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.quote-text {
    font-weight: 600;
    color: #86efac;
    margin-bottom: 0.5rem;
}

.quote-author {
    color: #34d399;
    font-size: 0.875rem;
}

/* Community Section */
.community-section {
    text-align: center;
    margin-top: 5rem;
}

.community-image {
    position: relative;
    margin-bottom: 6rem;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.community-image img {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    display: block;
}

.community-content {
    max-width: 48rem;
    margin: 0 auto;
}

.community-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.community-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: rgba(30, 41, 59, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(251, 146, 60, 0.6);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
    color: #fb923c;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #cbd5e1;
}



/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.about-features {
    background: linear-gradient(to bottom right, rgba(251, 146, 60, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.about-feature {
    text-align: center;
}

.about-feature-icon {
    color: #fb923c;
    margin: 0 auto 0.75rem;
}

.about-feature-icon-blue {
    color: #3b82f6;
}

.about-feature-icon-green {
    color: #22c55e;
}

.about-feature-icon-purple {
    color: #9333ea;
}

.about-feature h3 {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.about-feature p {
    font-size: 0.875rem;
    color: #cbd5e1;
}

/* Download Section */
.download-section {
    padding: 5rem 0;
    background: rgba(30, 41, 59, 0.3);
}

.download-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
}

.download-btn {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.08);
    filter: brightness(1.1) saturate(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.download-btn img {
    height: 120px;
    width: auto;
    border-radius: 12px;
}

.coming-soon-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 3rem;
}

.coming-soon-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.coming-soon-box p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #0f172a;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 32px;
    width: 32px;
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: #94a3b8;
}

.footer-column h4 {
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    space-y: 0.5rem;
}

.footer-list li {
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid rgba(100, 116, 139, 0.3);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 2s; }
.floating-element:nth-child(3) { animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* Parallax Effect */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    animation: parallaxMove 20s linear infinite;
    z-index: -1;
}

@keyframes parallaxMove {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(1deg); }
}

/* Enhanced Animations */
.animate-scale {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.3s both;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.5s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive Design */
@media (min-width: 640px) {
    .download-buttons {
        flex-direction: row;
        gap: 2rem;
    }
    
    .download-btn img {
        height: 140px;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-grid-reverse {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-grid-reverse .story-content {
        order: 1;
    }
    
    .story-grid-reverse .story-image {
        order: 2;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .download-btn img {
        height: 180px;
    }
    
    .download-buttons {
        flex-direction: row;
        gap: 3rem;
    }
}

/* Responsive enhancements */
/* Typography scales with viewport */
.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 2.5rem);
}

.story-content h3 {
    font-size: clamp(1.125rem, 2.8vw, 1.5rem);
}

.about-feature p {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Small screens adjustments */
@media (max-width: 640px) {
    .story-grid,
    .story-grid-reverse {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .story-image {
        margin-bottom: 3.5rem;
    }

    .image-caption {
        bottom: -48px;
        padding: 0.75rem;
    }

    .download-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 200px;
        display: flex;
        justify-content: center;
    }

    .download-btn img {
        height: 80px;
        width: auto;
        max-width: 220px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 10vw, 2.25rem);
    }

    .download-btn img {
        height: 70px;
        max-width: 200px;
    }

    .download-buttons {
        gap: 0.75rem;
        margin: 2rem 0;
    }

    .footer-grid {
        gap: 1rem;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .section-title {
        font-size: clamp(3rem, 3.5vw, 4rem);
    }

    .download-btn img {
        height: 200px;
    }
}

/* Touch targets on mobile */
@media (pointer: coarse) and (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.25rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}