/**
 * @author Steve Tibbetts <steve@itdsi.com>
 * @version 1.0.0
 * @copyright 2025 Dirigo Solutions, Inc (DSI)
 * @link https://DSI.guru DSI
 */

/* Global Styles */
body {
    font-family: 'Arial', sans-serif; /* Default sans-serif */
    background-color: #000000; /* Black background */
    color: #D3D3D3; /* Light grey text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* H1/H2 with Creepster font (sparing use, legible) */
h1, h2 {
    font-family: 'Creepster', 'Arial', sans-serif;
    color: #4CAF50; /* Green accent */
}

/* Header Styles */
#site-header {
    position: fixed; /* Sticky header */
    top: 0;
    width: 100%;
    background-color: #1a1a1a;
    border-bottom: 2px solid #4CAF50;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
    overflow: visible; /* Allow logo to extend below */
}

.header-container {
    position: relative; /* Allow absolute positioning within */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo img {
    position: absolute; /* Break out below header container */
    top: 10px; /* Align to header top */
    left: 0; /* Align to left edge */
    width: 75px; 
    height: 110px; 
    object-fit: contain; /* Maintain aspect ratio */
    z-index: 2001; /* Above parallax layers but below header content if needed */
    /* pointer-events: none; /* Avoid interfering with nav */ 
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #D3D3D3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4CAF50; /* Green on hover */
}

.contact-info a {
    color: #D3D3D3;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive: Tablet (768px and below) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* Stack vertically */
        padding: 10px;
    }
    nav ul {
        margin-top: 10px;
    }
    nav ul li {
        margin: 0 10px;
    }
    .contact-info {
        margin-top: 10px;
    }
}

/* Responsive: Mobile (480px and below) */
@media (max-width: 480px) {
    nav ul {
        flex-direction: column; /* Stack nav items */
    }
    nav ul li {
        margin: 5px 0;
    }
    .logo img {
        height: 40px; /* Smaller logo */
    }
}

/* Updated Accents: Green primary, Purple secondary */
nav ul li a:hover {
    color: #800080; /* Purple on hover for variety */
}

/* Parallax Section Styles (revised for base + effects) */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Slightly taller for scroll effect */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Base parallax */
}

/* Layer Z-Index and Opacity for Depth */
.parallax-base { /* Taxidermy base: slowest, fully opaque */
    z-index: -3;
    opacity: 1.0;
}
.parallax-effect-1 { /* Fog: medium speed, semi-transparent */
    z-index: -2;
    opacity: 0.5;
}
.parallax-effect-2 { /* Spiders/Webs: fastest, more transparent for subtlety */
    z-index: -1;
    opacity: 0.3;
}

.parallax-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
    max-width: 900px;
    margin: 30px auto 0 auto; /* Your adjusted margin */
}
/* Section Content Wrapper (for consistency across all sections) */
.section-content, .parallax-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
    max-width: 900px;
    margin: 30px auto 0 auto; /* Match parallax-content margin */
}

/* Section Separators (grey bars for definition) */
.section-separator {
    height: 175px; 
    background-color: #333333; /* Dark grey for subtlety */
    /* border-top: 1px solid #4CAF50; */
    /* border-bottom: 1px solid #4CAF50; */
    width: 100%;
}

/* Ensure Parallax Sections Stack Properly */
.parallax-section {
    min-height: 100vh; /* Full height for each section */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-separator {
        height: 30px; /* Shorter on tablets */
    }
    .section-content, .parallax-content {
        padding: 15px;
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 480px) {
    .section-separator {
        height: 20px; /* Even shorter on mobile */
    }
}
/* Stationary Background for Lower Sections */
.stationary-bg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.stationary-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Slightly taller for coverage */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixed for stationary "window" effect */
    z-index: -1;
}

/* Ensure Content Scrolls Over the Background */
.section-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
    max-width: 900px;
    margin: 30px auto 0 auto;
}

/* Keep Dynamic Parallax for #home Only */
.parallax-section:not(.stationary-bg) .parallax-bg {
    /* Existing dynamic styles apply only to #home */
}
/* Background Overlay (full-screen, fixed, changes dynamically) */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixed for "window" effect */
    z-index: -2; /* Behind content */
    transition: background-image 0.5s ease; /* Smooth transition when changing */
}

/* Ensure Content is Above Overlay */
.parallax-content, .section-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
    max-width: 900px;
    margin: 30px auto 0 auto;
}

/* Slider Styles (in #home) */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

/* General Section Styles */
.section {
    min-height: 100vh;
    padding: 100px 20px; /* Account for sticky header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-section, .contact-section {
    background-color: #1a1a1a; /* Dark grey for contrast */
}

/* Feedback/Testimonials Cards */
.feedback-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background-color: #333333;
    padding: 20px;
    margin: 10px;
    border: 1px solid #4CAF50; /* Green border */
    border-radius: 5px;
    max-width: 300px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
	margin: 0 auto;
}

.contact-form input, .contact-form textarea, .contact-form button {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #800080; /* Purple accent */
    background-color: #1a1a1a;
    color: #FFF;
}

.contact-form button {
    background-color: #4CAF50; /* Green button */
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #800080; /* Purple on hover */
}

/* Responsive Updates */
@media (max-width: 768px) {
    .parallax-section {
        height: 80vh; /* Shorter on tablets */
    }
    .slider {
        height: 300px;
    }
    .feedback-cards {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 80px 10px;
    }
    .slider {
        height: 250px;
    }
}

/* Footer Styles */
#site-footer {
    background-color: #1a1a1a; /* Dark grey, matching header */
    border-top: 2px solid #4CAF50; /* Green accent border */
    color: #D3D3D3;
    padding: 20px 0;
    text-align: center;
}

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

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    color: #D3D3D3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #800080; /* Purple on hover */
}

.social-links {
    margin: 10px 0;
}

.social-links a {
    color: #D3D3D3;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4CAF50; /* Green on hover */
}

.copyright {
    font-size: 0.9em;
    margin-top: 10px;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .footer-nav ul {
        flex-direction: column;
    }
    .footer-nav ul li {
        margin: 5px 0;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 10px;
    }
    .social-links a {
        display: block;
        margin: 5px 0;
    }
}

/* Dynamic Fog Particles (fixed for immediate, smooth drift) */
.fog-particle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(128, 0, 128, 0.9) 0%, rgba(128, 0, 128, 0) 70%);
    border-radius: 50%;
    z-index: 1; /* Behind content */
    animation: drift 15s infinite ease-in-out; /* Smooth easing for continuous feel, no long delays */
    opacity: 1.0;
}

/* Updated keyframes: Continuous oscillating drift for smooth loops */
@keyframes drift {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-20px) translateX(10px); }
    75% { transform: translateY(-10px) translateX(15px); }
    100% { transform: translateY(0) translateX(20px); } /* Smooth loop back */
}

/* Dynamic Spider Particles (final: transparent emoji, no background/border) */
.spider-particle {
    position: absolute;
    z-index: 1; /* Behind content */
    pointer-events: none;
    opacity: 0.7; /* Semi-transparent for subtlety */
    transition: transform 0.1s;
}

/* Ensure parallax content stays on top */
.parallax-content {
    position: relative;
    z-index: 1; /* Back to normal */
}