/* Custom styles and overrides */
:root {
    --plum-950: #2b121c;
    --plum-900: #4e2336;
    --plum-800: #5f2941;
    --plum-700: #74304d;
    --plum-600: #8e3d5f;
    --plum-500: #a8587c;
    --plum-200: #ebcdd8;
    --plum-100: #f5e8ee;
    --plum-50: #faf4f7;
    --amber-500: #f5a623;
    --amber-400: #ffcf4a;
    --amber-300: #ffdb7a;
    --amber-200: #ffe7b0;
    --amber-100: #fff3d9;
    --amber-50: #fffbeb;
}

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

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

::-webkit-scrollbar-track {
    background: var(--plum-950);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber-500);
}

/* Selection color */
::selection {
    background: var(--amber-500);
    color: var(--plum-950);
}

/* Focus styles */
*:focus {
    outline: none;
}

/* Button hover effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

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

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(245, 166, 35, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Animation delays */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Mobile menu transitions */
.mobile-menu {
    will-change: transform;
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-overlay {
        display: none;
    }
}

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

/* Reduced motion */
@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;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
}

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

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Additional dark mode styles can be added 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 var(--plum-200);
    border-top-color: var(--amber-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Utility classes */
.container-custom {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Responsive typography */
.text-responsive {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.text-responsive-lg {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.text-responsive-xl {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.text-responsive-2xl {
    font-size: clamp(2rem, 5vw, 3rem);
}

.text-responsive-3xl {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.text-responsive-4xl {
    font-size: clamp(3rem, 7vw, 5rem);
}
