body {
    font-family: 'Lato', sans-serif;
    background-color: #121212; /* Spooky dark background */
    color: #e0e0e0;
    cursor: none;
    overflow-x: hidden; /* Prevent horizontal scroll due to shadow creatures */
    position: relative; /* For flickering effect overlay */
}
h1, h2, h3, .font-spooky {
    font-family: 'Creepster', cursive;
    letter-spacing: 1px;
}

/* --- MYSTERIOUS ELEMENTS & EASTER EGGS --- */

/* 1. Custom Cursor */
#cursor-dot, #cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #ff7e00; /* Pumpkin Orange */
}
#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #9d4edd; /* Eerie Purple */
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease;
}
body:has(a:hover, button:hover, .card:hover) #cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
     border-color: #ff7e00;
}

/* 2. Floating Wisps */
.wisp {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    animation: floatWisp 15s infinite ease-in-out;
    filter: blur(10px);
}
.wisp:nth-child(1) { width: 40px; height: 40px; top: 10%; left: 5%; animation-delay: 0s; }
.wisp:nth-child(2) { width: 60px; height: 60px; top: 30%; right: 10%; animation-delay: 3s; }
.wisp:nth-child(3) { width: 50px; height: 50px; bottom: 20%; left: 15%; animation-delay: 6s; }
.wisp:nth-child(4) { width: 70px; height: 70px; top: 50%; left: 25%; animation-delay: 9s; }
.wisp:nth-child(5) { width: 45px; height: 45px; bottom: 5%; right: 5%; animation-delay: 12s; }

@keyframes floatWisp {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.5; }
    50% { transform: translateY(-50px) translateX(20px) scale(1.1); }
    90% { opacity: 0.5; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
}

/* 3. Shadow Creatures */
.shadow-creature {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 501;
    opacity: 0;
    transition: opacity 0.1s ease-out; /* For quick fade */
    animation: shadowDart 15s infinite;
    filter: blur(5px);
}
.shadow-creature:nth-child(1) { width: 80px; height: 80px; animation-delay: 0s; }
.shadow-creature:nth-child(2) { width: 60px; height: 60px; animation-delay: 5s; }
.shadow-creature:nth-child(3) { width: 90px; height: 90px; animation-delay: 10s; }

@keyframes shadowDart {
    0% { transform: translateX(-150vw) translateY(50vh); opacity: 0; }
    1% { opacity: 0.5; }
    5% { transform: translateX(10vw) translateY(40vh); opacity: 0.5; }
    6% { opacity: 0; }
    15% { transform: translateX(120vw) translateY(60vh); opacity: 0; }
    16% { transform: translateX(150vw) translateY(20vh); opacity: 0; }
    17% { opacity: 0.4; }
    20% { transform: translateX(-10vw) translateY(30vh); opacity: 0.4; }
    21% { opacity: 0; }
    30% { transform: translateX(-150vw) translateY(10vh); opacity: 0; }
    31% { transform: translateX(-150vw) translateY(80vh); opacity: 0; }
    32% { opacity: 0.6; }
    36% { transform: translateX(10vw) translateY(75vh); opacity: 0.6; }
    37% { opacity: 0; }
    100% { transform: translateX(120vw) translateY(85vh); opacity: 0; }
}


/* 4. Flickering Light */
#flicker-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* More darkening */
    pointer-events: none;
    z-index: 999;
    opacity: 0; /* Starts invisible */
}
#flicker-overlay.flicker-active {
    animation: flickerAnimation 0.15s infinite steps(1); /* Faster, more intense flicker */
}

@keyframes flickerAnimation {
    0% { opacity: 0.7; }
    25% { opacity: 0.3; }
    50% { opacity: 0.8; }
    75% { opacity: 0.2; }
    100% { opacity: 0.6; }
}

/* 5. Spider */
#spider-container {
    position: absolute;
    top: -20px;
    right: 0;
    width: 150px;
    height: 150px;
    z-index: 5;
    pointer-events: none;
}
#spider-web {
    width: 100%;
    height: 100%;
    fill: rgba(200, 200, 200, 0.4);
    stroke: currentColor;
    stroke-width: 0.5;
    transform: scale(1.5) translate(-17%, -17%);
    transform-origin: top right;
}
#spider {
    position: absolute;
    top: 40px;
    left: 70px;
    font-size: 24px;
    animation: dangle 5s infinite ease-in-out;
    color: #555; /* Darker spider */
}

@keyframes dangle {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

/* 6. Hidden Ghost */
#hidden-ghost {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}
footer .container:hover #hidden-ghost {
    opacity: 0.8;
    transform: translate(-50%, -20px);
}

/* 7. Konami Canvas */
#easter-egg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
}

/* 8. Animated Pumpkins */
.animated-pumpkin {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 0 8px rgba(255, 126, 0, 0.6));
    animation: pumpkinGlow 3s infinite alternate ease-in-out;
    z-index: 10;
    pointer-events: none;
}
@keyframes pumpkinGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 126, 0, 0.4)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 126, 0, 0.8)); transform: scale(1.05); }
}
.pumpkin-1 { top: 20%; left: 10%; transform: rotate(-15deg); animation-delay: 0.5s; }
.pumpkin-2 { bottom: 10%; right: 15%; transform: rotate(10deg); animation-delay: 1.5s; }
.pumpkin-3 { top: 5%; right: 5%; transform: rotate(5deg); animation-delay: 2.5s; }

/* 9. Drifting Ghosts */
.drifting-ghost {
    position: fixed;
    font-size: 4rem;
    opacity: 0;
    pointer-events: none;
    z-index: 502;
    animation: driftGhost 18s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}
.drifting-ghost:nth-child(1) { top: 40%; left: -10%; animation-delay: 0s; }
.drifting-ghost:nth-child(2) { top: 10%; right: -10%; animation-delay: 6s; }
.drifting-ghost:nth-child(3) { bottom: 20%; left: -10%; animation-delay: 12s; }

@keyframes driftGhost {
    0% { transform: translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    50% { transform: translateX(120vw) rotate(15deg); opacity: 0.3; }
    90% { opacity: 0.1; }
    100% { transform: translateX(150vw) rotate(0deg); opacity: 0; }
}

/* 10. Creepy Vines/Tendrils */
.creepy-vine {
    position: absolute;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 0 C20 20, 80 80, 50 100 S20 120, 0 100" fill="none" stroke="%23303030" stroke-width="2"/></svg>') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    filter: blur(0.5px);
}
.vine-top-left { top: -20px; left: -20px; width: 100px; height: 100px; transform: rotate(-45deg); }
.vine-bottom-right { bottom: -20px; right: -20px; width: 100px; height: 100px; transform: rotate(135deg); }
.vine-middle-left { top: 50%; left: -30px; width: 80px; height: 80px; transform: translateY(-50%) rotate(20deg); }


/* 11. Glimmering Eyes */
.glimmer-eyes {
    position: absolute;
    width: 30px;
    height: 10px;
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    animation: glimmerFade 8s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}
.glimmer-eyes::before, .glimmer-eyes::after {
    content: '';
    position: absolute;
    top: 0;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 5px red;
}
.glimmer-eyes::before { left: 0; }
.glimmer-eyes::after { right: 0; }

.eyes-1 { top: 60%; left: 5%; animation-delay: 2s; } /* Hero section */
.eyes-2 { bottom: 5%; right: 10%; animation-delay: 7s; } /* Services section */
.eyes-3 { top: 20%; left: 70%; animation-delay: 12s; } /* About section */
.eyes-4 { top: 75%; left: 20%; animation-delay: 4s; } /* Services section */
.eyes-5 { top: 10%; right: 10%; animation-delay: 9s; } /* FAQ section */
.eyes-6 { bottom: 20%; left: 5%; animation-delay: 14s; } /* Contact section */

@keyframes glimmerFade {
    0% { opacity: 0; transform: scale(0.5); }
    10% { opacity: 0.8; transform: scale(1); }
    20% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* 12. Blood Splatter Effect */
.blood-splatter {
    position: fixed;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(180,0,0,0.8) 21%, rgba(150,0,0,0.7) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: splatterFade 0.6s ease-out;
}
@keyframes splatterFade {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* 13. Image distortion on hover */
.card img {
    transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.card:hover img {
    filter: grayscale(80%) blur(1px) contrast(150%);
    transform: scale(1.02);
}

/* --- END EASTER EGGS --- */

.gradient-text {
    background: linear-gradient(90deg, #ff7e00, #fca311);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-bg {
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 126, 0, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(157, 78, 221, 0.1), transparent 50%),
                #121212;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.hero-image-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-image {
    position: absolute;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -1px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    position: relative; /* For vines */
}
.card:hover {
    box-shadow: 0 20px 25px -5px rgba(255, 126, 0, 0.2), 0 10px 10px -5px rgba(255, 126, 0, 0.1);
}
.btn-primary {
    background-image: linear-gradient(to right, #ff7e00, #fca311, #ff7e00);
    background-size: 200% auto;
    transition: background-position 0.5s;
}
.btn-primary:hover {
    background-position: right center;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.headline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotate(5deg);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.headline-word.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.tab-content.active {
    display: block;
}
.tab-btn.active {
    color: #ff7e00;
}
#tab-underline {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7e00, #fca311);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.accordion-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    position: relative; /* For vines */
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.accordion-icon {
    transition: transform 0.3s ease-in-out;
}
.accordion-button.active .accordion-icon {
    transform: rotate(135deg);
}

#back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-image: linear-gradient(to right, #ff7e00, #fca311, #ff7e00);
    background-size: 200% auto;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-position 0.5s;
    z-index: 1000;
}
#back-to-top-btn:hover {
    background-position: right center;
}
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-group {
    position: relative;
}
.form-input {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    transition: border-color 0.2s;
}
.form-label {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    color: #888;
    pointer-events: none;
    transition: transform 0.2s, font-size 0.2s, color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: #ff7e00;
    box-shadow: 0 0 0 2px rgba(255, 126, 0, 0.3);
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.5rem) scale(0.8);
    background-color: #1e1e1e;
    padding: 0 0.25rem;
    color: #ff7e00;
}

/* Testimonial Carousel */
#testimonial-slider-container {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

/* Media Gallery Carousel */
#gallery-carousel .gallery-item {
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
#gallery-carousel .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#gallery-carousel .gallery-item.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
    width: 60%;
    height: 100%;
}
#gallery-carousel .gallery-item.prev {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.5;
    z-index: 5;
    width: 50%;
    height: 80%;
}
#gallery-carousel .gallery-item.next {
    transform: translateX(50%) scale(0.8);
    opacity: 0.5;
    z-index: 5;
    width: 50%;
    height: 80%;
}
#gallery-carousel .gallery-item.hidden-prev {
    transform: translateX(-100%) scale(0.6);
    opacity: 0;
    z-index: 1;
}
#gallery-carousel .gallery-item.hidden-next {
    transform: translateX(100%) scale(0.6);
    opacity: 0;
    z-index: 1;
}

/* Pricing Card */
.pricing-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(255, 126, 0, 0.2), 0 10px 10px -5px rgba(255, 126, 0, 0.1);
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: bold;
    color: #ff7e00;
    margin: 1rem 0;
}
.pricing-card .description {
    color: #aaa;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.pricing-card.popular {
    border-color: #ff7e00;
    transform: scale(1.05);
}
.popular-tag {
    position: absolute;
    width: 150px;
    text-align: center;
    padding: 0.5rem 0;
    top: 25px;
    right: -30px;
    background-color: #ff7e00;
    color: #121212;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}


