/* CSS Document */
/* ========================================
   ANIMATIONS & TRANSITIONS
   Peters-Partner Hover Effects & Animations
   ======================================== */

/* ========================================
   ENTRANCE ANIMATIONS
   ======================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   SECTION ANIMATIONS
   ======================================== */

section {
    animation: slideInUp 0.6s ease-out;
}

h1 {
    animation: slideInDown 0.8s ease-out;
}

h2 {
    animation: slideInDown 0.7s ease-out;
}

.section-box {
    animation: fadeInScale 0.5s ease-out;
}

/* ========================================
   BUTTON ANIMATIONS
   ======================================== */

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Pulsing effect for CTA button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 90, 88, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 90, 88, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 90, 88, 0);
    }
}

/* ========================================
   NAVIGATION ANIMATIONS
   ======================================== */

.nav-menu a {
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before {
    width: 100%;
}

/* ========================================
   CARD ANIMATIONS
   ======================================== */

.section-box {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 90, 88, 0.15);
}

/* ========================================
   LIST ANIMATIONS
   ======================================== */

li {
    animation: slideInUp 0.4s ease-out both;
}

li:nth-child(1) {
    animation-delay: 0.1s;
}

li:nth-child(2) {
    animation-delay: 0.2s;
}

li:nth-child(3) {
    animation-delay: 0.3s;
}

li:nth-child(4) {
    animation-delay: 0.4s;
}

li:nth-child(5) {
    animation-delay: 0.5s;
}

li:nth-child(6) {
    animation-delay: 0.6s;
}

li:nth-child(7) {
    animation-delay: 0.7s;
}

/* ========================================
   IMAGE ANIMATIONS
   ======================================== */

.hero-image {
    animation: fadeInScale 0.8s ease-out;
}

.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* ========================================
   SLIDESHOW ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide.active {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-caption {
    animation: slideInUp 0.4s ease-out 0.2s both;
}

.slide-counter {
    animation: slideInDown 0.4s ease-out 0.1s both;
}

.slide-nav {
    transition: all 0.3s ease;
}

.slide-nav:hover {
    transform: translateY(-50%) scale(1.15);
}

.dot {
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.3);
}

.dot.active {
    animation: pulse 0.5s ease-out;
}

/* ========================================
   FOOTER ANIMATIONS
   ======================================== */

.footer-section {
    animation: slideInUp 0.6s ease-out;
}

.footer-section:nth-child(2) {
    animation-delay: 0.1s;
}

.social-links a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

.accent-text {
    animation: slideInDown 0.7s ease-out;
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

a {
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: reveal 0.6s ease-out forwards;
}

/* ========================================
   LINK HOVER EFFECTS
   ======================================== */

a {
    position: relative;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* ========================================
   MEDIA QUERY ADJUSTMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}