/* Custom Animations and Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Animation */
.header-slide-down {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animated Background Elements */
.animated-bg-1 {
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 16rem;
    height: 16rem;
    background: linear-gradient(to bottom right, rgba(251, 191, 36, 0.3), rgba(251, 146, 60, 0.3));
    border-radius: 50%;
    filter: blur(3rem);
    animation: float1 20s infinite linear;
}

.animated-bg-2 {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    width: 24rem;
    height: 24rem;
    background: linear-gradient(to bottom right, rgba(192, 132, 252, 0.3), rgba(236, 72, 153, 0.3));
    border-radius: 50%;
    filter: blur(3rem);
    animation: float2 15s infinite linear;
}

@keyframes float1 {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes float2 {
    0% {
        transform: scale(1.2) rotate(360deg);
    }
    50% {
        transform: scale(1) rotate(180deg);
    }
    100% {
        transform: scale(1.2) rotate(0deg);
    }
}

/* Floating Icon Animation */
.floating-icon {
    animation: floatUpDown 3s infinite ease-in-out;
}

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

/* Icon Rotate on Hover */
.icon-rotate:hover i {
    animation: rotate360 0.6s ease-in-out;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-slide {
    transition: transform 0.3s ease;
}

.hover-slide:hover {
    transform: translateX(10px);
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d97706, #ea580c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #b45309, #c2410c);
}

/* Mobile Menu Transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobileMenu.active {
    max-height: 300px;
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: #d97706;
}

/* Loading State for Form */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error Message */
.error-message {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.5s ease-out;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .fixed, .floating, header, footer {
        display: none;
    }
}

/* Accessibility */
.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 */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Gradient Text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
