/* Additional CSS for animations and enhanced visual effects for The Gap People */

/* Reveal animations */
.statement-section,
.about-section,
.services-section,
.clients-section,
.portfolio-section,
.contact-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.statement-section.revealed,
.about-section.revealed,
.services-section.revealed,
.clients-section.revealed,
.portfolio-section.revealed,
.contact-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger menu animation */
.hamburger-menu.active span {
    background-color: transparent;
}

.hamburger-menu.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-menu.active span::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Page load animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Service item hover effect */
.service-item.active {
    background-color: rgba(0, 0, 0, 0.1);
    padding-left: 20px;
}

/* Form success message */
.form-success {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    border-radius: 5px;
}

/* Gap bridging animation */
.hero-image img,
.statement-image img {
    animation: bridge 6s ease-in-out infinite;
}

@keyframes bridge {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-20px);
    }
    100% {
        transform: translateX(0px);
    }
}

/* Yellow highlight effect */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: height 0.3s ease;
}

.highlight:hover::after {
    height: 100%;
}

/* Circular button style */
.circular-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--text-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.circular-button:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
    color: var(--text-dark);
}

/* Parallax effect for background elements */
.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.parallax-element {
    position: absolute;
    opacity: 0.1;
}

.parallax-element.square {
    background-color: var(--text-dark);
}

/* Gap visual elements */
.gap-visual {
    position: relative;
    width: 100%;
    height: 5px;
    background-color: var(--text-dark);
    margin: 30px 0;
    overflow: hidden;
}

.gap-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    animation: fillGap 3s ease-in-out forwards;
}

@keyframes fillGap {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Bridge animation for section transitions */
.bridge-animation {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.bridge-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    animation: bridgeAcross 2s ease-in-out forwards;
}

@keyframes bridgeAcross {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Custom cursor for interactive elements */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
}

.custom-cursor.active {
    opacity: 0.5;
}

.custom-cursor.expanded {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.2;
}
