import streamlit as st
import pandas as pd
import numpy as np

st.set_page_config(page_title="Zero to Hero: Master Data Science & ML")

## CSS Styling for Background Image with Gradient Overlay 
custom_css = """
<style>
       html, body, [data-testid="stAppViewContainer"] {
        background: 
            linear-gradient(
                rgba(0, 0, 0, 0.6), 
                rgba(0, 0, 0, 0.6)
            ),
            url("https://www.istockphoto.com/photo/tech-or-space-background-abstract-3d-illustration-gm1367865109-437999705?utm_source=pixabay&utm_medium=affiliate&utm_campaign=SRP_photo_sponsored&utm_content=https%3A%2F%2Fpixabay.com%2Fphotos%2Fsearch%2Fbackground%2520datascience%2F&utm_term=background+datascience.jpg");
        background-size: cover;
        background-attachment: fixed;
        color: white;
       }
       h1 {
        color: Black;
        text-align: center;
        margin-top: 5px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
       }
       .division {
        margin: 20px auto;
        padding: 20px;
        background: rgba(255, 255, 255, 0.1); 
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }
      .division h2 {
        color: Black;
        margin-bottom: 10px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); 
      }
      .division p {
        line-height: 1.5;
        font-size: 1.0rem;
      }
</style>
"""
st.write(custom_css, unsafe_allow_html=True)

# App Header
st.markdown("<h1 style='text-align: center; color: Black;'>🚀 Zero_to_Hero_in_ML  🤖</h1>", unsafe_allow_html=True)

# About Section
st.markdown("<h2 style='color: Black;'>About the App 🌟</h2>", unsafe_allow_html=True)
st.markdown(
    "<p style='font-size: 16px; color: White; font-style: italic;'>"
    "This app shares the inspiring journey of an individual who began their data science exploration with no prior knowledge. "
    "It details their path to mastering various aspects of the field, including Machine Learning, Deep Learning, and Generative AI. "
    "The app highlights their challenges, setbacks, and perseverance in transitioning from a beginner to an expert in data science, offering a motivational zero-to-hero story."
    "</p>",
    unsafe_allow_html=True
)
st.markdown(
    "<p style='font-size: 16px; color: White; font-style: italic;'>"
    "Learning data science comes with numerous challenges, such as gaining proficiency in tools like Python, building a solid understanding of mathematical concepts like statistics, "
    "and bridging the gap between theoretical knowledge and practical applications."
    "</p>",
    unsafe_allow_html=True
)
st.markdown(
    "<p style='font-size: 16px; color: White; font-style: italic;'>"
    "Starting out in data science comes with several initial hurdles, such as a lack of technical expertise and difficulty understanding how to apply concepts in real-world scenarios. "
    "Additionally, common struggles include managing time effectively, dealing with imposter syndrome, and navigating the overwhelming abundance of information available."
    "</p>",
    unsafe_allow_html=True
)

# Author Section
st.markdown("<h2 style='color: Black;'>About the Author 🤖</h2>", unsafe_allow_html=True)
st.markdown(
    "<p style='font-size: 16px; color:White; font-style: italic;'>"
    "Sai Kalyan Satwik is a dedicated learner and practitioner in the field of data science. "
    "Starting with no prior knowledge, he has successfully transitioned into a skilled professional with expertise in Python, Machine Learning, Deep Learning, and Generative AI."
    "</p>",
    unsafe_allow_html=True
)
st.markdown(
    "<p style='font-size: 16px; color:White; font-style: italic;'>"
    "Beyond his technical abilities, he is passionate about inspiring others by sharing his journey. "
    "He firmly believes that with the right mindset, structured learning, and perseverance, anyone can overcome challenges and succeed."
    "</p>",
    unsafe_allow_html=True
)
st.markdown(
    "<p style='font-size: 16px; color:White; font-style: italic;'>"
   "Fueled by curiosity and determination, he has conquered various obstacles, including technical knowledge gaps."
      "Through relentless dedication, hands-on projects, and continuous learning, he has achieved remarkable proficiency in the field."
    "</p>",
    unsafe_allow_html=True
)