* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation Bar */
.top-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    font-size: 0.85rem;
    display: none;
}

.top-nav .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.other-services {
    color: var(--text-secondary);
    font-weight: 500;
}

.service-links {
    display: flex;
    gap: 20px;
}

.service-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Main Navigation */
.main-nav {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: block;
}

.site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.add-app-btn {
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.add-app-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.logout-btn-nav {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    display: none;
}

.logout-btn-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    padding: 0px 0px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    z-index: 2;
}

.hero-icon {
    margin-bottom: 30px;
}

.hero-icon img {
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 550px;
}

.hero-right {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-silhouette {
    width: 100%;
    height: 100%;
    background-image: url('hero-silhouette.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    position: relative;
}

/* Features Bar */
.features-bar {
    background: white;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-box svg {
    color: var(--text-primary);
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Filter Navigation */
.filter-nav {
    background: var(--card-bg);
    padding: 20px 0;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--border-color);
    display: none;
}

.filter-nav .container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Main Content */
main {
    padding: 0;
}

/* Recommended Apps Section */
.recommended-section {
    background: #F5F2EC;
    padding: 80px 20px;
    margin-top: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.category-group {
    margin-bottom: 80px;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-group.white-bg {
    background: #F3EFF0;
    padding: 80px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.featured-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.featured-app-card.hidden {
    display: none;
}

.featured-app-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-app-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.featured-app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.featured-app-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.featured-app-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.app-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.app-tag.green {
    background: #d1fae5;
    color: #065f46;
}

.app-tag.pink {
    background: #fce7f3;
    color: #9f1239;
}

.app-tag.purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.app-tag.blue {
    background: #dbeafe;
    color: #1e40af;
}

.featured-app-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 100px;
}

.featured-age {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.featured-age svg {
    color: var(--text-secondary);
}

.featured-features {
    list-style: none;
    margin-bottom: 16px;
    padding: 0;
}

.featured-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    height: 25px;
}

.featured-safety {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #166534;
    min-height: 100px;
}

.featured-platforms {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

.featured-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.view-all-wrapper {
    text-align: center;
}

.show-more-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
}

.show-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Get Educated Section */
.get-educated-section {
    background: #ECF2F5;
    padding: 80px 20px;
}

/* About Section */
.about-section {
    background: #F3EFF0;
    padding: 80px 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.about-list {
    list-style: none;
    margin: 24px 0 30px;
    padding: 0;
}

.about-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text-secondary);
    padding-left: 30px;
    position: relative;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.about-closing {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-top: 40px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.guide-left {
    max-width: 600px;
}

.guide-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.3;
}

.guide-intro {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.guide-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.learn-more-btn {
    background: #fef3c7;
    color: #78350f;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.learn-more-btn:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

.guide-right {
    position: relative;
    height: 500px;
}

.guide-image {
    width: 100%;
    height: 100%;
    background-image: url('guide-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Apps Section */
.apps-section {
    padding: 80px 20px;
    background: white;
    display: none;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.apps-section .container {
    max-width: 1400px;
}

/* Contact Section */
.contact-section {
    background: #ECF2F5;
    padding: 80px 20px;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-secondary);
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    background: var(--background);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-company {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-container {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.4);
}

.login-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}


/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-right {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .nav-right {
        gap: 12px;
    }
    
    .nav-link {
        display: none;
    }
    
    .featured-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
    
    .guide-right {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .section-title,
    .category-title {
        font-size: 1.8rem;
    }
    
    .guide-title {
        font-size: 1.6rem;
    }

    .apps-grid,
    .featured-apps-grid {
        grid-template-columns: 1fr;
    }

    .filter-nav .container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .login-container {
        padding: 40px 30px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .service-links {
        flex-wrap: wrap;
        font-size: 0.75rem;
    }
    
    .features-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-name {
        font-size: 1.1rem;
    }
    
    .add-app-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .top-nav .container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

