/* Custom CSS for Global Family Transformation Website */

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Typography enhancements */
.font-serif {
    letter-spacing: -0.02em;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-ready {
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7C3AED;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B21A8;
}

/* Enhanced focus styles */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Button hover effects */
button, 
a.inline-block {
    position: relative;
    overflow: hidden;
}

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

button:hover::before, 
a.inline-block:hover::before {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.hover\:shadow-xl {
    transition: all 0.3s ease;
}

.hover\:shadow-xl:hover {
    transform: translateY(-4px);
}

/* Navigation enhancements */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease;
    transform-origin: top;
}

#mobileMenu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

/* Hero text gradient effect */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #7C3AED, #6B21A8, #7C3AED);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

/* Form styling enhancements */
form input,
form textarea,
form select {
    transition: all 0.3s ease;
}

form input:hover,
form textarea:hover,
form select:hover {
    border-color: #7C3AED;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: #7C3AED;
    opacity: 0.2;
    font-family: 'Playfair Display', serif;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section dividers */
section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7C3AED, transparent);
    opacity: 0.3;
}

section:last-child::after {
    display: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .font-serif {
        font-size: calc(1em + 1vw);
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Custom purple gradient backgrounds */
.bg-gradient-purple {
    background: linear-gradient(135deg, #7C3AED 0%, #6B21A8 100%);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Smooth page transitions */
body {
    animation: pageLoad 0.5s ease;
}

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