/* Modern Hero Section Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;700;900&family=Creepster&display=swap');

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    
    /* Modern gradient overlay with Charleston imagery */
    background-image: 
        linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(26, 26, 46, 0.85) 100%),
        url('https://images.unsplash.com/photo-1567703648203-5df7dde30e59?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Ghost Overlay with Modern Gradient */
.ghost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, transparent 0%, rgba(138, 43, 226, 0.1) 40%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
}

/* Floating Orbs Container */
.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Spirit Particles Canvas */
#spirit-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Title with Glitch Effect */
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    background: linear-gradient(45deg, #d4af37, #f4e4bc, #d4af37);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 3s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 80px rgba(212, 175, 55, 0.5);
}

@keyframes goldShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #d4af37, #f4e4bc, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    clip: rect(44px, 450px, 56px, 0);
    transform: translate(-2px, -2px);
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    clip: rect(44px, 450px, 56px, 0);
    transform: translate(2px, 2px);
}

@keyframes glitch-1 {
    0% { clip: rect(132px, 350px, 101px, 30px); }
    5% { clip: rect(17px, 350px, 94px, 30px); }
    10% { clip: rect(40px, 350px, 66px, 30px); }
    15% { clip: rect(87px, 350px, 82px, 30px); }
    20% { clip: rect(137px, 350px, 61px, 30px); }
    25% { clip: rect(34px, 350px, 14px, 30px); }
    30% { clip: rect(133px, 350px, 74px, 30px); }
    35% { clip: rect(76px, 350px, 107px, 30px); }
    40% { clip: rect(59px, 350px, 130px, 30px); }
    45% { clip: rect(29px, 350px, 84px, 30px); }
    50% { clip: rect(22px, 350px, 67px, 30px); }
    55% { clip: rect(67px, 350px, 62px, 30px); }
    60% { clip: rect(10px, 350px, 105px, 30px); }
    65% { clip: rect(78px, 350px, 115px, 30px); }
    70% { clip: rect(105px, 350px, 13px, 30px); }
    75% { clip: rect(15px, 350px, 75px, 30px); }
    80% { clip: rect(66px, 350px, 39px, 30px); }
    85% { clip: rect(133px, 350px, 73px, 30px); }
    90% { clip: rect(36px, 350px, 128px, 30px); }
    95% { clip: rect(68px, 350px, 103px, 30px); }
    100% { clip: rect(14px, 350px, 100px, 30px); }
}

@keyframes glitch-2 {
    0% { clip: rect(129px, 350px, 36px, 30px); }
    5% { clip: rect(36px, 350px, 4px, 30px); }
    10% { clip: rect(85px, 350px, 66px, 30px); }
    15% { clip: rect(91px, 350px, 91px, 30px); }
    20% { clip: rect(148px, 350px, 138px, 30px); }
    25% { clip: rect(38px, 350px, 122px, 30px); }
    30% { clip: rect(69px, 350px, 54px, 30px); }
    35% { clip: rect(98px, 350px, 71px, 30px); }
    40% { clip: rect(146px, 350px, 34px, 30px); }
    45% { clip: rect(134px, 350px, 43px, 30px); }
    50% { clip: rect(102px, 350px, 80px, 30px); }
    55% { clip: rect(119px, 350px, 44px, 30px); }
    60% { clip: rect(106px, 350px, 99px, 30px); }
    65% { clip: rect(141px, 350px, 74px, 30px); }
    70% { clip: rect(20px, 350px, 78px, 30px); }
    75% { clip: rect(133px, 350px, 79px, 30px); }
    80% { clip: rect(78px, 350px, 52px, 30px); }
    85% { clip: rect(35px, 350px, 39px, 30px); }
    90% { clip: rect(67px, 350px, 70px, 30px); }
    95% { clip: rect(71px, 350px, 103px, 30px); }
    100% { clip: rect(83px, 350px, 40px, 30px); }
}

/* Hero Subtitle with Typewriter */
.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(244, 228, 188, 0.9);
    margin: 2rem auto;
    min-height: 2em;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    max-width: 90%;
}

.typed-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #d4af37;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #0a0a0a;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4e4bc 0%, #d4af37 100%);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: #f4e4bc;
    border: 2px solid #d4af37;
    box-shadow: inset 0 0 0 0 #d4af37;
}

.btn-secondary:hover {
    color: #0a0a0a;
    box-shadow: inset 300px 0 0 0 #d4af37;
    transform: translateY(-3px);
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #d4af37;
    border-radius: 25px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: #d4af37;
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

/* Full Width Sections Container */
.full-width-sections {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Modern Section Styles */
.about-section,
.investigations-section,
.services-section,
.contact-section {
    padding: 100px 0;
    position: relative;
    background: #0a0a0a;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* About Section Content Layout Fix */
.about-section .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(244, 228, 188, 0.9);
    margin-bottom: 1.5rem;
}

.about-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.investigations-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.services-section {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
}

.contact-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #d4af37, #f4e4bc, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 3s linear infinite;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    color: rgba(244, 228, 188, 0.7);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

/* Modern Card Styles */
.investigation-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 400px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.investigation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.investigation-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.card-back {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #0a0a0a;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.investigation-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.investigation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.investigation-card:hover .investigation-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.investigation-card:hover .image-overlay {
    opacity: 1;
}

.investigation-image.placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghost-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.investigation-content {
    padding: 1.5rem;
}

.investigation-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f4e4bc;
}

.investigation-excerpt {
    color: rgba(244, 228, 188, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.investigation-date {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.investigations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 228, 188, 0.1) 100%);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    min-width: 200px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: #d4af37;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #d4af37;
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(244, 228, 188, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Contact Form */
.investigation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.investigation-form input,
.investigation-form textarea {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f4e4bc;
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.investigation-form input:focus,
.investigation-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: rgba(26, 26, 46, 0.9);
}

.investigation-form input::placeholder,
.investigation-form textarea::placeholder {
    color: rgba(244, 228, 188, 0.5);
}

.btn-submit {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.btn-submit.success {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 200px;
    }
    
    .investigations-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}