/* 
Enhanced Animation Styles for The Halo
*/

/* ==================== Animation Variables ==================== */
:root {
    --animation-duration: 1s;
    --animation-timing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ==================== Section Styling ==================== */
.section {
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
}

.separator-line {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 20px 0 30px;
    display: block;
    transition: width 1s ease;
}

.separator-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-title.animated::after {
    width: 80px;
}

/* ==================== Hero Section Enhancements ==================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

.hero-title {
    position: relative;
}

.hero-title .typing-cursor {
    display: inline-block;
    margin-left: 5px;
    font-weight: 100;
    animation: blink 0.7s infinite;
}

.floating-shape {
    position: absolute;
    background-color: var(--gold-20);
    border-radius: 50%;
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 15s ease infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 25%;
    animation: float 12s ease-in-out infinite;
}

/* ==================== Button Enhancements ==================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* ==================== Image Effects ==================== */
.image-frame {
    position: relative;
    padding: 20px;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.frame-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid var(--gold);
    z-index: -1;
}

.top-right {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: 0;
    border-top: 0;
}

/* ==================== Service Card Enhancements ==================== */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
    transition: transform 0.5s ease;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover .card-hover-effect {
    transform: scaleX(1);
}

/* ==================== Value Card Enhancements ==================== */
.value-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--gold-20);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotateY(180deg);
    background-color: var(--gold);
    color: var(--white);
}

.value-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--gold-20) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.value-card:hover .value-hover-effect {
    opacity: 1;
}

/* ==================== Value Items Enhancements ==================== */
.value-item {
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.value-item .value-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item:hover .value-icon {
    transform: rotate(10deg);
}

/* ==================== Stats Section Enhancements ==================== */
.stats-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--gold-20) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--gold-20) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, var(--gold-20) 0%, transparent 30%),
        radial-gradient(circle at 80% 10%, var(--gold-20) 0%, transparent 15%);
    opacity: 0.6;
}

.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.stat-count {
    position: relative;
    display: inline-block;
}

.stat-count:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==================== Founder Section Enhancements ==================== */
.founder-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-image-wrapper img {
    transition: transform 0.5s ease;
}

.founder-image-wrapper:hover img {
    transform: scale(1.05);
}

.founder-image-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, var(--dark-grey-80) 100%);
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gold-20);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-5px);
}

/* ==================== Feature Card Enhancements ==================== */
.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg);
}

/* ==================== Why Choose Us Enhancements ==================== */
.gradient-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        var(--dark-grey) 0%, 
        var(--dark-grey-80) 25%, 
        var(--gold-50) 50%, 
        var(--dark-grey-80) 75%, 
        var(--dark-grey) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.2;
}

/* ==================== CTA Section Enhancements ==================== */
.cta-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--gold-20) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--gold-20) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, var(--gold-20) 0%, transparent 30%),
        radial-gradient(circle at 80% 10%, var(--gold-20) 0%, transparent 15%);
    opacity: 0.15;
}

.cta-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* ==================== Animations ==================== */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(173, 153, 124, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(173, 153, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(173, 153, 124, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Basic Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn var(--animation-duration) var(--animation-timing) forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp var(--animation-duration) var(--animation-timing) forwards;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft var(--animation-duration) var(--animation-timing) forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight var(--animation-duration) var(--animation-timing) forwards;
}

/* Animation-specific settings */
.animated {
    animation-play-state: running !important;
    opacity: 1;
}

/* Enhance existing animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Added classes for particles */
.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

.bounce {
    animation: bounce 0.8s ease infinite;
}

/* Parallax elements */
.parallax {
    transition: transform 0.5s ease-out;
    will-change: transform;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* Animation durations */
.duration-500 { animation-duration: 0.5s; }
.duration-1000 { animation-duration: 1s; }
.duration-1500 { animation-duration: 1.5s; }
.duration-2000 { animation-duration: 2s; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .cta-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .value-card:hover {
        transform: translateY(-5px);
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}