/* Basic Reset & Typography */
body {
    font-family: 'Poppins', sans-serif; /* Changed to Poppins */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    /* Main body background - this will show if hero doesn't cover 100% height or below main content */
    background: linear-gradient(135deg, #A020F0, #0F52BA, #FFBF00); /* Purple, Marine Blue, Yellow Sapphire */
    background-attachment: fixed; /* Ensures the gradient covers the entire viewport, even on scroll */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

a {
    color: #007aff; /* Apple Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white header */
    padding: 1em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo a {
    font-size: 1.6em;
    font-weight: 800; /* Extra bold */
    color: #333;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #007aff;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #007aff;
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content Area */
main, .main-content, .privacy-app-list {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff; /* Main content background remains white for readability */
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 12px;
    position: relative; /* For z-index if needed */
    z-index: 1; /* Ensure it sits above the body background */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Top align content */
    align-items: center;
    min-height: 60vh;
}

/* Hero Section (Full Width, 80% Height) */
.hero {
    width: 100%; /* Full width */
    height: 80vh; /* 80% of viewport height */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-direction: column; /* Stack items vertically */
    text-align: center;
    /* Gradient for Hero Section */
    background: linear-gradient(135deg, #5F27CD 0%, #4834D4 100%); /* Deep Purple to Darker Blue */
    color: #fff; /* White text on dark background */
    margin-bottom: 40px; /* Space before next content */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    overflow: hidden; /* Ensure nothing spills out */
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px; /* Constrain content width */
    padding: 20px;
}

/* Profile Photo Styling - This makes it round with a border */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes it a perfect circle */
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white background for initials */
    color: #fff;
    font-size: 3em;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.7); /* **Slightly more opaque white border** */
    box-shadow: 0 0 15px rgba(0,0,0,0.3); /* Soft shadow */
    opacity: 0; /* Initial state for animation */
    animation: fadeInScale 1s ease-out forwards;
}

/* Add styling for the image inside profile-photo if you use one */
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


.hero h1 {
    font-size: 3.8em; /* Larger name */
    margin-bottom: 10px;
    color: #fff; /* White text */
    font-weight: 800;
    opacity: 0; /* Initial state for animation */
    animation: fadeInScale 1s ease-out 0.2s forwards; /* Delayed fadeInScale */
}

.hero .intro-text {
    font-size: 1.8em; /* Larger intro text */
    color: rgba(255, 255, 255, 0.9); /* Slightly subdued white */
    margin-bottom: 30px;
    opacity: 0; /* Initial state for animation */
    animation: fadeIn 1s ease-out 0.4s forwards; /* Delayed fade in */
}

.btn-view-work {
    display: inline-block;
    background-color: #FFBF00; /* Yellow Sapphire button */
    color: #333; /* Dark text for contrast */
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,191,0,0.4);
    opacity: 0; /* Initial state for animation */
    animation: fadeInScale 1s ease-out 0.6s forwards; /* Delayed fadeInScale */
}

.btn-view-work:hover {
    background-color: #e6a800; /* Slightly darker yellow on hover */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255,191,0,0.5);
    text-decoration: none;
}


/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Initial hidden state for sections that will animate on scroll */
section:not(.hero) {
    opacity: 0;
    transform: translateY(50px); /* Start position for slide-in */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Transition for when JS removes hidden state */
}


/* App Card & Featured App */
.featured-app, .other-apps {
    margin-bottom: 40px;
    text-align: center;
    padding: 20px;
    background-color: #fff; /* Ensure these sections are white */
    border-radius: 12px; /* Match main content box */
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Match main content box */
}

.app-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 18px; /* More rounded */
    padding: 25px;
    text-align: center;
    margin: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* More prominent shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block; /* For grid layout */
    vertical-align: top;
    width: 280px; /* Adjust as needed */
    /* opacity and transform are now controlled by JS on scroll */
}

.app-card:hover {
    transform: translateY(-8px); /* Lift more on hover */
    box-shadow: 0 12px 25px rgba(0,0,0,0.15); /* Stronger shadow on hover */
}

.app-card .app-icon {
    width: 120px; /* Larger icon */
    height: 120px;
    border-radius: 25%; /* App icon rounded corners */
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.app-card .app-icon:hover {
    transform: scale(1.05); /* Slight zoom on icon hover */
}

.app-card h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
    color: #333;
    font-weight: 700;
}

.app-card p {
    font-size: 1em;
    color: #666;
    min-height: 50px; /* Ensure consistent height for descriptions */
}

.btn-appstore {
    display: inline-block;
    background-color: #007aff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px; /* More rounded */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,122,255,0.3); /* Subtle blue shadow */
}

.btn-appstore:hover {
    background-color: #0056b3;
    transform: translateY(-3px); /* Lift button on hover */
    box-shadow: 0 6px 15px rgba(0,122,255,0.4);
    text-decoration: none;
}

.btn-appstore.large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.btn-details {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-details:hover {
    background-color: #e0e0e0;
    color: #007aff;
    transform: translateY(-2px);
    text-decoration: none;
}

.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* More space between app cards */
    margin-top: 30px;
}

.app-card.placeholder {
    opacity: 0.6;
    filter: grayscale(100%);
    cursor: default;
}

.app-card.placeholder:hover {
     transform: none;
     box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* No lift/stronger shadow for placeholders */
}

/* About Me Section */
.about-me {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff; /* Ensure this section is white */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Match main content box */
}

.about-me h2 {
    font-size: 2.2em;
    color: #007aff;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-me p {
    max-width: 800px;
    margin: 0 auto 1.2em auto;
    font-size: 1.15em;
    color: #444;
    line-height: 1.8;
}

/* App Detail Page (Toop) */
.app-detail {
    text-align: center;
    padding: 20px;
    background-color: #fff; /* Ensure this section is white */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Match main content box */
}

.app-detail .app-header {
    background: linear-gradient(135deg, #e9f5ff 0%, #cce0ff 100%);
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.app-detail-icon {
    width: 180px; /* Larger icon on detail page */
    height: 180px;
    border-radius: 25%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

.app-detail h1 {
    font-size: 3.2em;
    margin-bottom: 8px;
    color: #007aff;
    font-weight: 800;
}

.app-detail .tagline {
    font-size: 1.4em;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.app-description {
    text-align: left;
    margin-bottom: 30px;
    padding: 0 20px;
}

.app-description h2, .app-description h3 {
    color: #2c3e50;
    margin-top: 1.8em;
    margin-bottom: 1em;
    border-bottom: 2px solid #eee; /* Thicker separator */
    padding-bottom: 8px;
    font-weight: 700;
}

.app-description ul {
    list-style: disc outside; /* Disc outside for better alignment */
    padding-left: 25px;
}

.app-description li {
    margin-bottom: 0.8em;
    font-size: 1.05em;
    color: #444;
}

.app-screenshots {
    margin-top: 50px;
    padding: 0 20px;
}

.app-screenshots h2 {
    font-size: 2.2em;
    color: #007aff;
    font-weight: 700;
    margin-bottom: 30px;
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.screenshot-grid img {
    width: 280px; /* Slightly larger screenshots */
    height: auto;
    border: 2px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Privacy Policy & Support Pages */
.privacy-policy, .support {
    text-align: left;
    padding: 20px;
    background-color: #fff; /* Ensure these sections are white */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Match main content box */
}

.privacy-policy h1, .support h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #007aff;
    font-size: 2.8em;
    font-weight: 800;
}

.privacy-policy h2, .privacy-policy h3, .support h2, .support h3 {
    margin-top: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
}

.privacy-policy p, .support p, .privacy-policy li, .support li {
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
}

.privacy-policy ul, .support ul {
    list-style: disc outside;
    padding-left: 30px;
    margin-bottom: 1em;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #007aff; /* Stronger accent */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.25em;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background-color: #2c3e50; /* Darker footer */
    color: #f0f0f0;
    margin-top: auto;
    font-size: 0.95em;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    flex-shrink: 0;
    width: 100%;
}

footer .footer-links {
    margin-top: 15px;
}

footer .footer-links a {
    color: #a0a0a0;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 15px;
        height: 60vh; /* Adjust height for smaller screens */
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero .intro-text {
        font-size: 1.4em;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        font-size: 2.5em;
    }

    .app-card {
        width: 90%;
        max-width: 320px;
        margin: 15px auto;
    }

    .app-detail-icon {
        width: 120px;
        height: 120px;
    }

    .app-detail h1 {
        font-size: 2.5em;
    }

    .app-detail .tagline {
        font-size: 1.1em;
    }

    .screenshot-grid img {
        width: 100%;
        max-width: 320px;
    }

    main {
        padding: 15px;
        margin: 10px auto;
    }

    .privacy-policy h1, .support h1 {
        font-size: 2em;
    }
}

/* Header Dropdown Styles */
nav .dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 0;
    margin: 0;
    min-width: 260px;
    z-index: 1001;
    border-radius: 10px;
    overflow: hidden;
}
nav .dropdown-content li {
    padding: 0;
}
nav .dropdown-content a {
    display: block;
    padding: 15px 32px;
    min-height: 36px;
    line-height: 1.4;
    font-size: 1em;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
nav .dropdown-content a:hover {
    background: #f2f6ff;
    color: #007aff;
}

html {
  scroll-behavior: smooth;
}
