/* ========================================
   ENHANCED VISUAL EFFECTS & ANIMATIONS
   ======================================== */

/* Top Row Enhanced */
.top-row {
    background: linear-gradient(135deg, var(--bg) 0%, var(--header-bg) 100%);
    padding: 15px 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    border-bottom: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-row-text {
    font-size: 1.3em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 0.8em;
    color: var(--text);
    font-weight: 400;
    opacity: 0.9;
}

/* Hero Section Enhanced */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.groupcontainer {
    position: relative;
    text-align: center;
    color: #ededed;
    margin-bottom: 20px;
    overflow: hidden;
}

.groupcontainer img {
    display: block;
    width: 100%;
    height: auto;
    animation: subtle-zoom 20s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.groupcontainer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Hero Text Animations */
.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-heading {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-welcome {
    font-size: clamp(2rem, 6vw, 4rem);
    color: #fff;
    text-shadow: -0.1em 0.15em 0.15em black;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 30px;
    border-radius: 10px;
    animation: fadeInDown 1s ease-out;
    backdrop-filter: blur(5px);
}

.hero-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.5rem, 5vw, 3rem);
}

.pillar {
    color: #fff;
    text-shadow: -0.1em 0.15em 0.15em black;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1s ease-out;
    transition: all 0.3s ease;
}

.pillar-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.pillar-2 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.pillar-3 {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-dot {
    color: var(--accent);
    font-size: 1.5em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Section Headings */
.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
    animation: expandWidth 2s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* F3 Begin Section */
.f3begin {
    padding: 40px 20px;
    animation: fadeIn 1s ease-out;
}

.f3begin p,
.intro-text {
    text-align: center;
    color: #fff;
    padding-left: 10%;
    padding-right: 10%;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: 15px;
}

.intro-text strong {
    color: var(--accent);
    font-weight: 700;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Custom Border Enhanced */
.custom-border {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    margin: 40px 0;
}

.custom-border::before,
.custom-border::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    border-bottom: 3px solid var(--accent);
    opacity: 0.6;
}

.custom-border::before {
    top: 0;
    box-shadow: 0 2px 10px rgba(255, 203, 5, 0.3);
}

.custom-border::after {
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(255, 203, 5, 0.3);
}

/* Wrapper */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

/* Prompt Box Enhanced */
.prompt-box {
    width: 90%;
    max-width: 450px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center;
    padding: 30px;
    transition: all 0.5s ease-in-out;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.prompt-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 203, 5, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.principle {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    gap: 15px;
    position: relative;
    z-index: 1;
}

.principle p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Arrows Enhanced */
.navigation-arrows {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 450px;
    margin-top: 20px;
}

.arrow {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 42px;
    color: var(--accent);
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.arrow:hover {
    transform: scale(1.3);
    color: var(--white);
    background: rgba(255, 203, 5, 0.2);
    box-shadow: 0 0 20px rgba(255, 203, 5, 0.5);
}

.arrow:active {
    transform: scale(1.1);
}

/* Locations Section Enhanced */
.joinus {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(42, 42, 46, 0.3) 100%);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.joinus p,
.cta-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Map Container */
.ihatethismap {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ihatethismap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 203, 5, 0.3);
}

.F3map {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.F3map iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* CTA Button Enhanced */
.jus,
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #b82a1f 100%);
    border: 2px solid var(--accent);
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: bold;
    padding: 15px 40px;
    text-decoration: none;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(216, 53, 38, 0.4);
}

.jus::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.jus:hover::before,
.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.jus:hover,
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 203, 5, 0.6);
    border-color: var(--white);
}

.jus:active,
.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(216, 53, 38, 0.4);
}

.button-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.jus:hover .button-icon,
.cta-button:hover .button-icon {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (min-width: 800px) {
    .ihatethismap {
        padding-left: 10%;
        padding-right: 10%;
        margin-bottom: 40px;
    }
    
    .mobile-only {
        display: none;
    }
    
    .jus {
        display: inline-flex;
    }
    
    .joinus p,
    .cta-text {
        padding-left: 20%;
        padding-right: 20%;
    }
}

@media (max-width: 720px) {
    .ihatethismap {
        display: none;
    }
    
    .mobile-only {
        display: block;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .joinus p,
    .cta-text {
        padding-left: 10%;
        padding-right: 10%;
    }
    
    .hero-pillars {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-dot {
        display: none;
    }
}

/* Footer Enhancements */
footer {
    margin-top: 60px;
    border-top: 2px solid var(--accent);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Scroll Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
