/* Custom Styles and Animations */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Premium Gradients */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #FF8A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3), 0 0 15px rgba(37, 99, 235, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.5), 0 0 25px rgba(37, 99, 235, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

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

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

/* Button Hover Effects */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.bg-slate-800\/50 {
    transition: all 0.3s ease;
}

.bg-slate-800\/50:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

/* Smooth Link Transitions */
a {
    transition: color 0.2s ease;
}

a:hover {
    color: inherit;
}

/* Premium Box Shadows */
.premium-shadow {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.glow-shadow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #071A3D;
}

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

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

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

    h2 {
        font-size: 1.875rem;
    }

    button {
        width: 100%;
    }
}

/* Animation Utilities */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

.animate-bounceIn {
    animation: bounceIn 0.6s ease-out;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Gradient Borders */
.gradient-border {
    border: 2px solid;
    border-image: linear-gradient(135deg, #2563EB 0%, #FF8A00 100%) 1;
}

/* Smooth Transitions for All Elements */
* {
    transition: all 0.2s ease;
}

/* Premium Badge Styling */
.premium-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #93c5fd;
}

/* Text Selection Color */
::selection {
    background-color: #2563EB;
    color: #FFFFFF;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Premium Container */
.premium-container {
    background: linear-gradient(135deg, rgba(7, 26, 61, 0.8) 0%, rgba(16, 43, 94, 0.8) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
}

/* Icon Animation */
svg {
    transition: all 0.3s ease;
}

button:hover svg,
a:hover svg {
    filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.5));
}

/* Code Block Styling (if used) */
code {
    background-color: rgba(44, 75, 122, 0.5);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.375rem;
    padding: 0.125rem 0.375rem;
    color: #93c5fd;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Divider Styling */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
    margin: 2rem 0;
}

/* Section Padding Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem !important;
    }
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    nav {
        padding: 1rem 0.5rem;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading State */
.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    background-size: 1000px 100%;
}
