/* Single Page Website Specific Styles */

/* Page Section Management */
.page-section {
    display: none;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed navbar */
}

.page-section.active {
    display: block;
}

/* Smooth transitions between sections */
.page-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation active states for single page */
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* Adjust hero sections for single page */
.page-section .hero {
    min-height: 80vh;
    padding-top: 2rem;
}

/* Fix any absolute positioning issues */
.page-section .section {
    position: relative;
}

/* Ensure proper spacing between sections */
.page-section:not(:last-child) {
    margin-bottom: 0;
}

/* Loading animation for section transitions */
.page-section.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile adjustments for single page */
@media (max-width: 768px) {
    .page-section {
        padding-top: 60px;
    }
    
    .page-section .hero {
        min-height: 70vh;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none !important;
    }
    
    .page-section {
        display: block !important;
        page-break-before: always;
        min-height: auto;
        padding-top: 0;
    }
    
    .page-section:first-child {
        page-break-before: auto;
    }
}

/* Accessibility improvements */
.page-section:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Back to top button (optional) */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}