/* Custom styles supplementing Tailwind CSS */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c43d1f;
}

/* Geometric shape animations */
.geometric-accent {
    animation: float 6s ease-in-out infinite;
}

.geometric-accent:nth-child(2) {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Text selection color */
::selection {
    background: #f9d8ce;
    color: #3d2b1f;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #d94f2a;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .btn-primary,
    .mobile-menu {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-text-side {
        padding: 2rem 1.5rem;
    }
    
    .hero-text-side h1 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .card-hover {
        transform: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text-side h1 {
        font-size: 3.5rem;
    }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
    .hero-text-side {
        padding: 6rem 4rem;
    }
    
    .geometric-accent {
        width: 250px;
        height: 250px;
    }
}

/* Large screen optimizations */
@media (min-width: 1440px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Could add dark mode variables here */
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #d94f2a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success state animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-success {
    animation: slideIn 0.3s ease-out;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Aspect ratio utilities */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}
