/* Basic Styles */
body, html {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #1E1E1E;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* App Container - Responsive Design */
.app-container {
    max-width: 1408px;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: #1E1E1E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Header & Navigation */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 50px;
}

.main-nav .nav-btn {
    background: none;
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.main-nav .nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.main-nav .nav-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Main Content & Page Sections */
.app-main {
    flex-grow: 1;
    padding: 0;
    display: grid;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    background: rgba(0,0,0,0.6);
    padding: 3rem;
    border-radius: 12px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #1976D2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #1565c0;
}

/* Portfolio Section */
#portfolio {
    padding: 4rem 2rem;
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
#contact {
    padding: 4rem 2rem;
    text-align: center;
}

/* Footer */
.app-footer {
    padding: 1rem;
    background-color: #111;
    text-align: center;
}

/* PWA Status Bar */
.pwa-status-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.online {
    background-color: #4CAF50;
    color: white;
}

.status.offline {
    background-color: #F44336;
    color: white;
}

.install-btn {
    background-color: #1976D2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.install-btn:hover {
    background-color: #1565c0;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1976D2;
    color: white;
    padding: 1rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 1500;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.install-banner.show {
    display: flex;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.install-banner-text h3 {
    margin: 0;
    font-size: 1rem;
}

.install-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.install-banner-actions {
    display: flex;
    gap: 0.5rem;
}

.install-banner-btn {
    padding: 0.5rem 1rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.install-banner-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.install-banner-btn.primary {
    background-color: white;
    color: #1976D2;
}

.install-banner-btn.primary:hover {
    background-color: #f5f5f5;
}

/* Media Queries */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        padding: 1rem;
    }

    .main-nav {
        margin-top: 1rem;
    }

    .pwa-status-bar {
        margin-top: 1rem;
        margin-left: 0;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    #portfolio, #contact {
        padding: 2rem 1rem;
    }

    .install-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .install-banner-content {
        flex-direction: column;
        text-align: center;
    }
}

