/* Custom animations and styles for premium theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --background: #1e293b;
    --text: #f8fafc;
    --card-bg: #334155;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-bounce-custom {
    animation: bounce 2s infinite;
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease-out forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-slide-in-down {
    animation: slideInDown 0.6s ease-out forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float-in {
    animation: floatIn 0.8s ease-out forwards;
}

.animate-flip-in {
    animation: flipIn 0.8s ease-out forwards;
    transform-style: preserve-3d;
}

.animate-pop-in {
    animation: popIn 0.6s ease-out forwards;
}

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

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

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

/* Gradient utilities */
.gradient-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.gradient-secondary {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
}

.gradient-accent {
    background: linear-gradient(45deg, var(--accent), var(--primary));
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}



/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .grid {
    direction: rtl;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Countdown styles */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(51, 65, 85, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Custom button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: #334155;
    border-radius: 16px;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 16px;
    animation: gradient 8s ease infinite;
    opacity: 0.7;
}

/* Enhanced contact form styles */
.contact-form-input {
    position: relative;
}

.contact-form-input input,
.contact-form-input select,
.contact-form-input textarea {
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.contact-form-input input:focus,
.contact-form-input select:focus,
.contact-form-input textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.contact-form-input svg {
    transition: color 0.3s ease;
}

.contact-form-input input:focus + div svg,
.contact-form-input select:focus + div svg,
.contact-form-input textarea:focus + div svg {
    color: var(--primary);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-strong {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Float animation */
.float {
    animation: float 4s ease-in-out infinite;
}

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

/* Geometric background patterns */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    opacity: 0.03;
    transform-origin: center;
}

.geometric-circle {
    border-radius: 50%;
    background: var(--primary);
}

.geometric-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid var(--secondary);
}

.geometric-square {
    background: var(--accent);
    transform: rotate(45deg);
}

/* Floating shapes animation */
@keyframes floatShapes {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes moveShapes {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(10px); }
    50% { transform: translateX(40px) translateY(0); }
    75% { transform: translateX(20px) translateY(-10px); }
    100% { transform: translateX(0) translateY(0); }
}

.floating-shape {
    animation: floatShapes 8s infinite ease-in-out;
}

.moving-shape {
    animation: moveShapes 12s infinite linear;
}

/* Particle background effect */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.05; }
    100% { transform: translateY(-100px) translateX(20px) rotate(360deg); opacity: 0; }
}

.floating-particle {
    animation: particleFloat 15s infinite linear;
}

/* Section differentiator styles */
.section-bg-1 {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.3) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.section-bg-2 {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(51, 65, 85, 0.3) 100%);
}

.section-bg-3 {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.section-divider {
    position: relative;
    overflow: hidden;
}

/* Decorative corners */
.decorative-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    opacity: 0.2;
}

.decorative-corner-top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.decorative-corner-top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.decorative-corner-bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.decorative-corner-bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Floating decorative elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.floating-circle {
    border-radius: 50%;
    background: var(--primary);
}

.floating-square {
    background: var(--secondary);
}

.floating-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--accent);
}

/* Animations for decorative elements */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(0); }
    75% { transform: translateY(-20px) translateX(-10px); }
}

.floating-element {
    animation: floatAnimation 8s infinite ease-in-out;
}

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

@keyframes pulse-strong {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}
